在多个../node_modules/webpack-dev-server/client中出错?http:// localhost:8080 ./app/index.js

时间:2018-08-09 03:07:36

标签: reactjs webpack webpack-dev-server polaris

我正在尝试运行webpack-dev-server,但出现以下错误:

多个../node_modules/webpack-dev-server/client中出现错误?http://localhost:8080 ./app/index.js 找不到模块:错误:无法解析“ / home / dinesh / Shopify_Test_New / shopify_app / bin”中的“ ./app/index.js” @ multi ../node_modules/webpack-dev-server/client?http://localhost:8080 ./app/index.js

  • 节点版本:10.6.0
  • NPM版本:1.7.0
  • webpack版本:4.16.5
  • webpack-dev-server版本:2.11.1

    webpack.config.js

    var webpack = require('webpack');
    
    var config = {
    
       entry: "./app/index.js",
    
      resolve: {
      extensions: ['.ts', '.js']
    },
      output: {
        path: __dirname + '/dist', // `dist` is the destination
        filename: 'bundle.js',
      },
    };
    
    module.exports = config;
    

0 个答案:

没有答案