vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

These relative modules were not found:

Open williamstar opened this issue 9 years ago • 88 comments

when runing dev-server there throw these two Error

ERROR Failed to compile with 2 errors 10:53:28

These relative modules were not found:

  • ./build/dev-client in multi ./build/dev-client ./src/main.js
  • ./src/main.js in multi ./build/dev-client ./src/main.js

Listening at http://localhost:8080

node-version 6.8.0 window10 i don't modify the webpack default config, it can run the app sometime but mostly throw the error

williamstar avatar Apr 16 '17 02:04 williamstar

I got the same problem like this: ERROR Failed to compile with 1 errors This relative module was not found:

  • ./src/main.js in multi ./build/dev-client ./src/main.js

fluteweng avatar May 31 '17 09:05 fluteweng

@williamstar how did u solve it ?

xerosanyam avatar Jun 07 '17 05:06 xerosanyam

@xerosanyam In my case , I use the vscode and run the app by F5 at the dev-server or node dev-server.js because I want to debugg some detail. But you can run npm run dev to solve this problem, if you want to debugger code may be can use the chrome debugger symbol embed into code.

williamstar avatar Jun 07 '17 07:06 williamstar

Was this solved? If so can someone post the solution?

10thfloor avatar Jul 21 '17 17:07 10thfloor

请问有人解决了这个问题吗 才安装的vue cli利用其搭建项目npm run dev之后就报类似的错 image

AprilTong avatar Jul 27 '17 06:07 AprilTong

Can someone please post the solution ?

xerosanyam avatar Aug 10 '17 10:08 xerosanyam

I solved it by updating all the npm packages by:

npm i -g npm-check-updates
npm-check-updates -u
npm install

please commit your package.json before performing above operation

xerosanyam avatar Aug 10 '17 11:08 xerosanyam

can someone solve this problem?

Huangsrtext avatar Aug 11 '17 09:08 Huangsrtext

The solution I have suggested above doesnt work for you ?

xerosanyam avatar Aug 11 '17 09:08 xerosanyam

@xerosanyam Doesnt work );

ghost avatar Aug 14 '17 10:08 ghost

@xerosanyam The second input is invalid

Huangsrtext avatar Aug 15 '17 06:08 Huangsrtext

@Tzrong 你的问题解决了吗

Huangsrtext avatar Aug 15 '17 06:08 Huangsrtext

你会说英语吗?

ghost avatar Aug 15 '17 08:08 ghost

@MrGrimod 你是说我?

Huangsrtext avatar Aug 15 '17 09:08 Huangsrtext

是的,但谷歌翻译器确实可以中国。因此,不要在意。 对不起。

ghost avatar Aug 15 '17 09:08 ghost

@MrGrimod 哈哈 没事 大家能指出问题所在就好

Huangsrtext avatar Aug 15 '17 09:08 Huangsrtext

These relative modules were not found: 同样的问题大家是怎么解决的?

Xuhengfeng avatar Aug 16 '17 03:08 Xuhengfeng

@Xuhengfeng 我也一直没找到方法,一直在等

Huangsrtext avatar Aug 16 '17 03:08 Huangsrtext

This relative module was not found:

  • ./src/main.js in multi ./build/dev-client ./src/main.js

Huangsrtext avatar Aug 21 '17 05:08 Huangsrtext

I got this error when I messed up the case of the filename. When I ran this on a build server running Linux (I use Mac for development) it failed because OS X is case-insensitive and Debian is case-sensitive.

paulredmond avatar Sep 19 '17 17:09 paulredmond