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

Cannot find module #21

Open
zjhsd2007 opened this issue Dec 18, 2015 · 3 comments
Open

Cannot find module #21

zjhsd2007 opened this issue Dec 18, 2015 · 3 comments

Comments

@zjhsd2007
Copy link

在执行npm run dev时报下面的错误,但这所有的依赖我都已经下载

Uncaught Error: Cannot find module "!!./../../node_modules/css-loader/index.js!./../../node_modules/vue-loader/lib/style-rewriter.js?id=_v-cee506ee&file=App.vue!./../../node_modules/stylus-loader/index.js!./../../node_modules/vue-loader/lib/selector.js?type=style&index=0!./App.vue"

环境:
win7
node v5.1.1
npm v3.5.1

@southerncross
Copy link

是不是改过代码?如果代码有错误可能会导致这个问题

@horizon0514
Copy link

+1 我在项目下修改代码。。然后npm run build 报错,好像是cross-env出错了
image

@santinoDu
Copy link

santinoDu commented Jun 30, 2016

我在npm run build的时候也发现了Cannot find module '../dist'这个错误,run dev可以正常起来,这个怎么解决?
补充一下环境mac,
node v4.4.7
npm v2.15.8

Tell the author that this fails on your system:
npm ERR! cross-env NODE_ENV=production webpack --progress --hide-modules


搞定了,把node_modules/.bin/cross-env里的require('../dist')路径给改成require('./../cross-env/dist') ,终于build起来了

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

4 participants