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
{{ message }}
This repository has been archived by the owner on Jun 25, 2020. It is now read-only.
ERROR in ./node_modules/bundle-loader?lazy&name=myChunk!./src/other.js
Module build failed: TypeError: Cannot read property 'context' of undefined
at Object.module.exports.pitch (/app/node_modules/bundle-loader/index.js:13:43)
@ ./src/index.js 1:0-60 3:0-5
It appears that Webpack 4 is not setting this.options when invoking loader functions. From bundle-loader source:
varoptions={context: query.context||this.options.context,// <-- Cannot read property 'context' of undefinedregExp: query.regExp};
I'd be glad to make a PR to fix this, but I'm not sure if the problem is a Webpack 4 issue or bundle-loader. If it's bundle-loader's issue, what's the desired behavior?
Using bundle-loader and specifying a
name
throws an error in Webpack 4.fails compilation with the error
It appears that Webpack 4 is not setting
this.options
when invoking loader functions. From bundle-loader source:I'd be glad to make a PR to fix this, but I'm not sure if the problem is a Webpack 4 issue or bundle-loader. If it's bundle-loader's issue, what's the desired behavior?
Versions
Webpack: 4.0.0-beta.0
bundle-loader: 0.5.5
Example
Glitch.me project that reproduces the error
The text was updated successfully, but these errors were encountered: