ERROR in找不到模块' ./_ Stack' @ multi main - webpack

时间:2016-08-24 15:11:32

标签: javascript reactjs webpack

我正在尝试使用react-music(https://github.com/FormidableLabs/react-music),在npm start之后我收到此错误消息 ERROR in找不到模块' ./_ Stack'  @多主 webpack:bundle现在是有效的。

webpack.config.js

    const path = require('path');
const webpack = require('webpack');

module.exports = {
  entry: [
    './demo/index',
  ],
  output: {
    path: path.join(__dirname, 'dist'),
    filename: 'bundle.js',
    publicPath: '/dist/',
  },
  plugins: [
    new webpack.optimize.OccurenceOrderPlugin(),
    new webpack.DefinePlugin({
      'process.env': {
        NODE_ENV: JSON.stringify('production'),
      },
    }),
  ],
  module: {
    loaders: [{
      test: /\.js$/,
      exclude: /node_modules/,
      loader: 'babel',
    }, {
      test: /\.css$/,
      loader: 'style!css!postcss',
    }],
  },
};

0 个答案:

没有答案