简体   繁体   English

如何使用 nuxtjs 配置 vuetify 以部署在 Google App Engine 上

[英]How can I config vuetify with nuxtjs to deploy on Google App Engine

I'm trying to run on app engine with nuxtjs and vuetify but I'm getting this error: Error: Cannot find module 'vuetify/es5/util/colors'我正在尝试使用 nuxtjs 和 vuetify 在 App Engine 上运行,但出现此错误:错误:找不到模块“vuetify/es5/util/colors”

package.json package.json

"dependencies": {
    "nuxt": "2.14.5"
  },
  "devDependencies": {
    "@nuxtjs/vuetify": "^1.11.2",
}

nuxt.config.js 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,
                },
            },
        },
    },
}

Error: Error: Cannot find module 'vuetify/es5/util/colors'错误:错误:找不到模块'vuetify/es5/util/colors'

Solution I've found is move nuxtjs/vuetify from devDependencies to dependencies我发现的解决方案是将 nuxtjs/vuetify 从 devDependencies 移动到 dependencies

在此处输入图像描述

Yes, move from devDependencies to dependencies like this.是的,从 devDependencies 转移到这样的依赖关系。 I hope, it'll work for you.我希望,它会为你工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何仅将一个文件部署到谷歌应用引擎? - How can I deploy just one file to google app engine? 如何将 Node HTTP/2 服务器部署到 Google App Engine? - How can I deploy a Node HTTP/2 server to Google App Engine? 如何将.env 和 api_config.properties 部署到 Google App 引擎? - How to deploy .env and api_config.properties to Google App engine? 我可以将Jodd框架应用程序部署到Google App Engine吗? - Can I deploy a Jodd framework app to Google App Engine? 如何从Google Cloud Source存储库直接部署到Google App Engine? - How can I deploy direct from Google Cloud Source Repository to Google App Engine? 如何更改NetBeans中用于将应用程序部署到Google App Engine的密码? - How can I change the password used in netbeans to deploy an app to google app engine? 如何将新服务部署到 Google App Engine 中的现有应用? - How can I deploy new service to the existing app in Google App Engine? 如何在不将包发布到 npm 注册表的情况下将依赖于纱线工作区的应用部署到 Google App Engine? - How can I deploy to Google App Engine an app that depends on a yarn workspaces without publishing the packages to a npm registry? 我可以只将Python .pyc文件部署到Google App Engine吗? - Can I deploy Python .pyc files only to Google App Engine? 如何将两个单独的项目(客户端和服务器端)部署到同一Google App Engine项目? - How can i deploy two separate projects (client and server side) to the same Google App Engine project?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM