1
를 사용하여 내가 웹팩을 사용하여 + + nodejs 반응이 내 웹팩 설정 파일이다있을 때 모듈 "FS"를 찾을 수 없습니다 수 없습니다 브라우저에서 모듈 "fs"를 찾으십시오.catch되지 않은 오류 : 웹팩
var webpack = require('webpack');
var path = require('path');
var ExtractTextPlugin = require('extract-text-webpack-plugin');
module.exports = {
entry: [
'script-loader!./public/js/vendor/jquery.js',
'script-loader!./public/js/vendor/foundation.min.js',
'script-loader!./public/js/app.js',
'./view/app.jsx',
'./view/styles/main.scss'
],
externals: {
jquery: 'jQuery'
},
plugins: [
new ExtractTextPlugin({
filename: './public/styles/bundle.css',
allChunks: true,
}),
new webpack.ProvidePlugin({
$: 'jquery',
jQuery: 'jquery'
})
],
output: {
path: __dirname,
filename: './public/bundle.js'
},
resolve: {
alias: {
view: path.join(__dirname, 'view'),
componentDir: path.join(__dirname, 'view/components/'),
configureStore: path.resolve(__dirname, 'view/store/configureStore/'),
actions: path.resolve(__dirname, 'view/actions/index/')
},
extensions: ['.js', '.jsx']
},
module: {
rules: [
...
]
}
};
어디에서 문제가 발생합니까?
사실이지만 브라우저의 콘솔에서 다른 오류가 발생합니다 (Uncaught TypeError : 정의되지 않은 'prototype'속성을 읽을 수 없음 ). 또한 다른 프로젝트에서이 코드를 사용했는데 매력적으로 작동합니다 ... –
오류 출처 : var fs $ ReadStream = fs.ReadStream ReadStream.prototype = Object.create (fs $ ReadStream.prototype) –
package/node_module? – chautelly