Closed alexiej closed 6 years ago
what was the issue here @alexiej ?
same here, but no idea what's the solution
In my case, the problem was with Webpack. It needed the following additional configuration. Hope this helps
const nodeExternals = require('webpack-node-externals')
...
module.exports = {
...
externals: [nodeExternals()],
...
}
Hi,
I have the same issue and I am not using Webpack but Serveless bundles. Is there another way to fix it, like downgrading the version of x-ray?
regards
Subject of the issue
ERROR in ./node_modules/x-ray/node_modules/batch/index.js Module not found: Error: Can't resolve 'emitter' in '.\node_modules\x-ray\node_modules\batch' @ ./node_modules/x-ray/node_modules/batch/index.js 8:16-34 @ ./node_modules/x-ray/lib/walk.js @ ./node_modules/x-ray/index.js @ ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib/selector.js?type=script&index=0!./src/renderer/components/webpages/Iconlist.vue @ ./src/renderer/components/webpages/Iconlist.vue @ ./src/renderer/router/index.js @ ./src/renderer/main.js @ multi ./.electron-vue/dev-client ./src/renderer/main.js
Your environment
Steps to reproduce
Expected behaviour
Working code
Actual behaviour
ERROR in ./node_modules/x-ray/node_modules/batch/index.js