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

Uncaught Error: Cannot find module './Create/create.js' #31

Closed
samlaudev opened this issue Sep 23, 2016 · 9 comments
Closed

Uncaught Error: Cannot find module './Create/create.js' #31

samlaudev opened this issue Sep 23, 2016 · 9 comments

Comments

@samlaudev
Copy link

打开微信web开发者工具v0.9.092100,chrome出现Uncaught Error: Cannot find module './Create/create.js'的错误!

@samlaudev
Copy link
Author

screen shot 2016-09-23 at 10 23 43 am

@samlaudev
Copy link
Author

samlaudev commented Sep 23, 2016

screen shot 2016-09-23 at 10 23 55 am

同时开发工具出现空白

@samlaudev
Copy link
Author

已经自己解决了!从console来看,提示信息是加载模块失败。将微信开发工具的项目导入atom,然后搜索相关字符串,将修改一下加载模块语句就行了

@xiangzhai
Copy link

Hi @samlaudev

修改了 package.nw/app/dist/components/ContainController.js 的 s=require(" ./create/create.js")

又提示 Error: Cannot find module './main.js'

find . -name "main.js"
./node_modules/mksnapshot/lib/main.js
./app/dist/weapp/quick/pages/main/main.js
./app/dist/js/weapp/quick/pages/main/main.js
./modified_modules/weinre/web/doc/scripts/main.js

貌似同级目录下没有该文件?

Regards,
Leslie Zhai

@xiangzhai
Copy link

v0.7.x倒是能工作~

screenshot1

screenshot2

screenshot3

screenshot4

用weapp能干嘛?开发**Yet Another WebWx**?!

@samlaudev samlaudev reopened this Sep 23, 2016
@samlaudev
Copy link
Author

有个Main.js文件,而不是main.js,m是大写的

@xiangzhai
Copy link

xiangzhai commented Sep 23, 2016

有个Main.js文件,而不是main.js,m是大写的

多谢!typo问题太多了。。。app/dist/components/debugger/debugger.js的../purview/purview.js要大写../Purview/purview.js

勉强能跑了:

screenshot1

screenshot2

@samlaudev
Copy link
Author

哈哈,能跑就好,现在玩玩而已

@xiangzhai
Copy link

Linux下编译wxml问题 #39

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

2 participants