#google-app-engine #vuetify.js #fatal-error #nuxtjs
#google-app-engine #vuetify.js #фатальная ошибка #nuxtjs
Вопрос:
Я пытаюсь запустить app engine с помощью nuxtjs и vuetify, но получаю следующую ошибку: Ошибка: не удается найти модуль ‘vuetify / es5 / util / colors’
package.json
"dependencies": {
"nuxt": "2.14.5"
},
"devDependencies": {
"@nuxtjs/vuetify": "^1.11.2",
}
nuxt.config.js
import colors from 'vuetify/es5/util/colors'
export default {
buildModules: [
'@nuxtjs/vuetify',
],
vuetify: {
theme: {
dark: true,
themes: {
dark: {
primary: colors.blue.darken2,
accent: colors.grey.darken3,
secondary: colors.amber.darken3,
info: colors.teal.lighten1,
warning: colors.amber.base,
error: colors.deepOrange.accent4,
success: colors.green.accent3,
},
},
},
},
}
Ошибка:
Ошибка: не удается найти модуль ‘vuetify / es5 / util / colors’
Ответ №1:
Решение, которое я нашел, — переместить nuxtjs / vuetify из devDependencies в dependencies