Uncaught ReferenceError: getApp is not defined
at getPage (addStylesClient.js:259)
at processCss (addStylesClient.js:242)
at applyToTag (addStylesClient.js:202)
at addStyle (addStylesClient.js:159)
at addStylesToDom (addStylesClient.js:107)
at addStylesClient (addStylesClient.js:61)
at Object../node_modules/@dcloudio/vue-cli-plugin-uni/packages/h5-vue-style-loader/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js?!./node_modules/css-loader/index.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/cache-loader/dist/cjs.js?!./node_modules/vue-loader/lib/index.js?!./node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-scoped-loader/index.js!./node_modules/wrap-loader/index.js?!D:\360MoveData\Users\Administrator\Documents\HBuilderProjects\Demo\App.vue?vue&type=style&index=0&id=6ef3bb76&scoped=true&lang=css& (App.vue?25c8:9)
at __webpack_require__ (bootstrap:723)
at fn (bootstrap:100)
at Module.D:\360MoveData\Users\Administrator\Documents\HBuilderProjects\Demo\App.vue?vue&type=style&index=0&id=6ef3bb76&scoped=true&lang=css& (App.vue?0f13:1)
- 发布:2019-05-31 21:37
- 更新:2020-04-10 19:42
- 阅读:8910
Liosixer (作者) - 一只会编程的熊
问题答案参考:
https://stackoverflow.com/questions/41431167/webpack-compiling-vue-with-node-env-production-still-results-in-dev-warning
但是uniapp里面根本没有vue.js 以及 vue.common.js
新建的什么项目?空工程吗?
-
Liosixer (作者)
回复 DCloud_UNI_GSQ: 用cli 创建项目时,报错, 连接不上 ERROR Failed fetching remote preset dcloudio/uni-preset-vue:
ERROR RequestError: connect ETIMEDOUT 13.229.189.0:4432019-06-21 16:12
社交软件联盟 - 免费的社交软件开发框架和运营支持合作联盟
同问这是什么问题呀,生成h5项目抱着个错
-
回复 DCloud_UNI_GSQ: 找到问题了uniui,在h5和app端不支持在main.js中全局注册,必须在app.vue中全局注册。请修复此问题或者再uni-ui中重点说明白,避免大家踩坑,谢谢
2020-04-16 14:40