1

我试图运行 webpack-dev-server 但收到以下错误:

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

  • 节点版本:10.6.0
  • NPM 版本:1.7.0
  • 网络包版本: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;
    
4

0 回答 0