ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\Idessign' · Issue #6858 · webpack/webpack · GitHub 您所在的位置:网站首页 landingPage/Visualization.png ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\Idessign' · Issue #6858 · webpack/webpack · GitHub

ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\Idessign' · Issue #6858 · webpack/webpack · GitHub

2023-12-13 17:15| 来源: 网络整理| 查看: 265

the problem comes with [email protected] the configuration it is correct look my webpack.config.js const webpack = require('webpack'), path = require('path'), ExtractTextPlugin = require("extract-text-webpack-plugin"), nodeExternals = require('webpack-node-externals'), srcPath = path.resolve(__dirname, "./src/"), distPath = path.resolve(__dirname, './src/build/'); const HTMLPlugin = require('html-webpack-plugin');

const BUILD_DIR = path.resolve(__dirname , "./src/build/"); // var APP_DIR = path.resolve(__dirname, "src/app"); const APP_DIR = path.resolve(__dirname, "./src/"); const IMG_DIR = path.resolve(__dirname, './public/images');

const browserConfig = { entry : APP_DIR + 'client/index.js', // APP_DIR + '/route/index.jsx',

resolve : { alias:{ images : IMG_DIR }, }, output : { path : BUILD_DIR, filename : "[name] bundle.js", publicPath:BUILD_DIR, },

module : { rules : [ { test : /\.(js|jsx)$/, include : APP_DIR, loader : 'babel-loader', exclude: /node_modules/, query : { presets:[ 'react', 'es2015'], } }, { test:/\.css$/, include: APP_DIR, loader:['style', 'css'] }, { test:/\.scss$/, include: APP_DIR, use: ExtractTextPlugin.extract({ fallback: "style-loader", use: "css-loader!sass-loader" }) }, { test: /\.(png|jpg|gif)$/, use : [ { loader: 'url-loader', options:{ limite:8192 } } ] } ] }, plugins: [ new ExtractTextPlugin("styles.css"), // new HTMLPlugin(), new HTMLPlugin(), ]

}; but when i run webpack

C:\Idessign>webpack Hash: 18bc2fd105d4883da519 Version: webpack 4.3.0 Time: 116ms Built at: 2018-3-28 12:58:19

WARNING in configuration The 'mode' option has not been set. Set 'mode' option to 'development' or 'production' to enable defaults for this environment.

ERROR in Entry module not found: Error: Can't resolve './src' in 'C:\Idessign'

C:\Idessign>



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有