Ax ios Webpack: невозможно прочитать свойство create из undefined - PullRequest
0 голосов
/ 14 июля 2020
• 1000 . js: 5)

Мой топор ios. js файл: https://i.stack.imgur.com/8rKXo.png

my webpack.config. js :

// webpack.config.js
const path = require( 'path' );
const HtmlWebPackPlugin = require( 'html-webpack-plugin' );
const LazyCompilePlugin = require('lazy-compile-webpack-plugin');
const webpack=require('webpack');
const dotenv = require('dotenv')
module.exports = {
    context: __dirname,
    entry: {
        main: './src/index.js',

      },
    output: {
        path: path.resolve(__dirname, 'dist'),
        filename: '[name].main.js',
   },
   devServer: {
    historyApiFallback: true
    },
    module: {
        rules: [
            {
                test: /\.((c|sa|sc)ss)$/i,
                use: ['style-loader', 'css-loader','sass-loader'],
                
            },
            {
                test: /\.(js|jsx)$/,
                exclude: /node_modules/,
                use: ["babel-loader"],
            },
            {
                test: /\.(png|j?g|svg|gif)?$/,
                use: 'file-loader',
                include: path.resolve(__dirname, 'src')
             }
        ]
    },

    resolve: {
        modules: ['.','node_modules']
    },
    plugins: [
        new HtmlWebPackPlugin({
           template: path.resolve( __dirname, 'public/index.html' ),
           filename: 'index.html'
        }),

         new webpack.DefinePlugin({
            'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV)
          })
       
     ],
    
    
};

Любая просьба о помощи

...