In one of my projects, I can't get SMP to load. Note that the error appears even if I don't call smp.wrap.
I keep getting this:
Error: ENOENT: no such file or directory, lstat '/index.js'
at Object.realpathSync (fs.js:1476:7)
at Object.<anonymous> (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:433889:28)
at Object../node_modules/speed-measure-webpack-plugin/index.js (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:434066:30)
at __webpack_require__ (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:21:30)
at Object../webpack/hot.config.js (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:442544:28)
at __webpack_require__ (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:21:30)
at Object../server/middleware/devMiddleware.js (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:440016:35)
at __webpack_require__ (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:21:30)
at module.exports../server/server.js.Promise.resolve.then (/home/joep/dev/src/bitbucket.org/arguweb/aod_demo/dist/private/server.js:440844:70)
at processTicksAndRejections (internal/process/task_queues.js:86:5)
I'm not sure which /index.js the error means. I assume it's the index of SMP, but the ./node_modules/speed-measure-webpack-plugin/index.js file exists.
In the compiled server.js file, this line causes the error:
/* WEBPACK VAR INJECTION */}.call(this, "/index.js"))
I tried reinstalling, removing node_modules, wrapping the config in smp.wrap, tried some different versions of SMP. I'm running node v11.15.0, webpack 4.39.2.
Hi there!
In one of my projects, I can't get SMP to load. Note that the error appears even if I don't call smp.wrap.
I keep getting this:
I'm not sure which
/index.js
the error means. I assume it's the index of SMP, but the./node_modules/speed-measure-webpack-plugin/index.js
file exists.In the compiled
server.js
file, this line causes the error:/* WEBPACK VAR INJECTION */}.call(this, "/index.js"))
Here's my webpack config:
And my common.config:
I tried reinstalling, removing node_modules, wrapping the config in smp.wrap, tried some different versions of SMP. I'm running node v11.15.0, webpack 4.39.2.
Thanks in advance!