Uncaught SyntaxError: Unexpected end of input
Uncaught SyntaxError: Unexpected end of input
webpack 使って build するような task があって build 時に上記のエラーに遭遇
Critical dependency: the request of a dependency is an expression
fs = require("fs"),
としているが、fs が {}
となっている
webpack.config の target: 'node' あれば良いと合ったので
{ target: 'node' }
としても
WebpackOptionsValidationError: Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema. - configuration.node should be one of these: false | object { Buffer?, __dirname?, __filename?, console?, global?, process?, ... } -> Include polyfills or mocks for various node stuff. Details: * configuration.node should be false * configuration.node['target'] should be one of these: false | true | "mock" | "empty" -> Include a polyfill for the node.js module
の false | true | "mock" | "empty"
のどれかということにしろということなんだけど、どれにしても解消せず