Skip to content

Cannot find module Error #2

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

Closed
kazupon opened this issue Aug 10, 2015 · 2 comments
Closed

Cannot find module Error #2

kazupon opened this issue Aug 10, 2015 · 2 comments

Comments

@kazupon
Copy link

kazupon commented Aug 10, 2015

When i was using [email protected] in my develop environment (dev/latest_test branch on https://github.com/vuejs/vue-validator), Occurred Error: Cannot find module Error.

Please see the detail error log:
https://gist.github.com/kazupon/0664c72c0a4ec4513c9d

BTW, When i was using [email protected], it works.

What I'm doing wrong?
Thanks!

@twada
Copy link
Member

twada commented Aug 10, 2015

Hi @kazupon, Thank you for reporting!

This error is caused by webpack, since webpack does not support require('./path/to/json') by default. (In this case estraverse requires its package.json)

To solve this issue, you can use webpack/json-loader by using --module-bind json or module.loaders: [{test: /\.json$/, loader: "json"}]

See also:

@kazupon
Copy link
Author

kazupon commented Aug 10, 2015

@twada
Thank you for quick reply.

I solved this issue.
Thanks !!

@kazupon kazupon closed this as completed Aug 10, 2015
sasaplus1 added a commit to chocolateorange/chocolateorange.github.io that referenced this issue Nov 19, 2016
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