Webpack Error - Cannot Resolve File or Directory

后端 未结 3 1353
抹茶落季
抹茶落季 2021-01-11 09:56

I am getting this error when I npm start my webpack-dev-server:

ERROR in multi main
Module not found: Error: Cannot resolve \'file\' or \'directory\' /var/ww         


        
3条回答
  •  甜味超标
    2021-01-11 10:33

    The same problem I met. I found an answer in github Error : ERROR in Entry module not found: Error: Cannot resolve 'file' or 'directory'#981. But sadly, in webpack 1.15.12, the --allow-incompatible-update has been remove. Also, I found when set the entry type is array, such as entry: [entry.js], webpack will run, but throw another error:(

    I wish it can help you, hopefully.

提交回复
热议问题