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

win10 64 npm run build 报一堆错求修复 #18

Open
xiaogaofudao opened this issue Apr 28, 2017 · 2 comments
Open

win10 64 npm run build 报一堆错求修复 #18

xiaogaofudao opened this issue Apr 28, 2017 · 2 comments

Comments

@xiaogaofudao
Copy link

ERROR in ./src/utils/modules/navigator.js
Module not found: Error: Cannot resolve 'file' or 'directory' E:\weex\weex-frame\config in E:\weex\weex-frame\src\utils\modules
@ ./src/utils/modules/navigator.js 17:14-31

ERROR in ./src/entry/views/userinfo/app.js?entry=true
Module parse failed: E:\weex\weex-frame\src\entry\views\userinfo\app.js?entry=true Bad character escape sequence (8:37)
You may need an appropriate loader to handle this file type.
SyntaxError: Bad character escape sequence (8:37)

ERROR in ./src/entry/App.js?entry=true
Module not found: Error: Cannot resolve module '..App.vue' in E:\weex\weex-frame\src\entry
@ ./src/entry/App.js?entry=true 8:12-33

ERROR in ./src/entry/components/osc-navbar.js?entry=true
Module not found: Error: Cannot resolve module '....componentsosc-navbar.vue' in E:\weex\weex-frame\src\entry\components
 @ ./src/entry/components/osc-navbar.js?entry=true 8:12-54

ERROR in ./src/entry/components/osc-tabitem.js?entry=true
Module not found: Error: Cannot resolve module '....componentsosc-tabitem.vue' in E:\weex\weex-frame\src\entry\components
 @ ./src/entry/components/osc-tabitem.js?entry=true 8:12-55

ERROR in ./src/entry/App.web.js?entry=true
Module not found: Error: Cannot resolve module '..App.web.vue' in E:\weex\weex-frame\src\entry
 @ ./src/entry/App.web.js?entry=true 8:12-37

后面还有一堆

@lhg0302
Copy link

lhg0302 commented Jun 22, 2017

我也碰到这个问题,好像引用的地址错误

@ccvcd
Copy link

ccvcd commented Jul 6, 2017

操作系统的路径分隔符差异问题
修改 webpack.config.js 文件,在 getEntryFileContent方法中,
let relativePath = path.relative(path.join(entryPath, '../'), vueFilePath);下面增加
relativePath = relativePath.replace(/\/g,'/');这个语句就可以了,原文件中的写法有问题

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