You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node 10.16.0
electron 3.0.2
webpack 4.20.2
webpack-node-externals 1.7.2
When adding the line externals: [nodeExternals()], in my webpack script I get the error:
vm.js:74 Uncaught SyntaxError: Unexpected token .
at new Script (vm.js:74)
at createScript (vm.js:246)
at Object.runInThisContext (vm.js:298)
at Module._compile (internal/modules/cjs/loader.js:678)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:722)
at Module.load (internal/modules/cjs/loader.js:620)
at tryModuleLoad (internal/modules/cjs/loader.js:559)
at Function.Module._load (internal/modules/cjs/loader.js:551)
at Module.require (internal/modules/cjs/loader.js:658)
at require (internal/modules/cjs/helpers.js:20)
So I assume the loaded code is having a syntax error. I looked into the code fragment and for an unknown reason it pulls in a css file and wraps it in js code for whatever reason:
Hello,
I have the following configuration:
node 10.16.0
electron 3.0.2
webpack 4.20.2
webpack-node-externals 1.7.2
When adding the line
externals: [nodeExternals()],
in my webpack script I get the error:I tracked down the code segment to:
So I assume the loaded
code
is having a syntax error. I looked into the code fragment and for an unknown reason it pulls in a css file and wraps it in js code for whatever reason:I thought that the issue might be in my webpack.config.js but it runs without the external module command.
Any ideas?
The text was updated successfully, but these errors were encountered: