Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run dev 报错 #16

Open
cubeer opened this issue Mar 21, 2019 · 3 comments
Open

npm run dev 报错 #16

cubeer opened this issue Mar 21, 2019 · 3 comments

Comments

@cubeer
Copy link

cubeer commented Mar 21, 2019

$ npm run dev

[email protected] dev D:\wechat\download\mpvue
node build/dev-server.js

D:\wechat\download\mpvue\node_modules\mpvue-template-compiler\build.js:5785
switch(fileExt.platform) {
^

TypeError: Cannot read property 'platform' of undefined
at Object.compileToWxml (D:\wechat\download\mpvue\node_modules\mpvue-template-compiler\build.js:5785:20)
at genComponentWxml (D:\wechat\download\mpvue\node_modules\mpvue-loader\lib\mp-compiler\index.js:45:75)
at Timeout.createWxml [as _onTimeout] (D:\wechat\download\mpvue\node_modules\mpvue-loader\lib\mp-compiler\index.js:92:19)
at ontimeout (timers.js:438:13)
at tryOnTimeout (timers.js:300:5)
at listOnTimeout (timers.js:263:5)
at Timer.processTimers (timers.js:223:10)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] dev: node build/dev-server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

@ghostsatan
Copy link

ERROR Failed to compile with 7 errors 14:40:02

error in ./src/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/home/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/index/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/logs/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/my/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/order/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/pay/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

一样报错

@wangxuguo
Copy link

ERROR Failed to compile with 7 errors 14:40:02

error in ./src/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/home/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/index/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/logs/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/my/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/order/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

error in ./src/pages/pay/main.js

Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)

一样报错

解决这个问题了吗?

@ghostsatan
Copy link

ERROR Failed to compile with 7 errors 14:40:02
error in ./src/main.js
Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)
error in ./src/pages/home/main.js
Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)
error in ./src/pages/index/main.js
Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)
error in ./src/pages/logs/main.js
Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)
error in ./src/pages/my/main.js
Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)
error in ./src/pages/order/main.js
Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)
error in ./src/pages/pay/main.js
Module build failed: Error: [mpvue-loader] need "fileExt" option in file "build/vue-loader.conf.js",init a new project and copy the directory "build/" to this porject, or just check the "fileExt" option
at Object.module.exports (E:\ken\github\mpvue\node_modules_mpvue-loader@1.4.0@mpvue-loader\lib\loader.js:55:11)
一样报错

解决这个问题了吗?

没有 困扰两天了 如果解决了 我会来这边说一下

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants