-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: Cannot read property 'split' of undefined #61
Comments
I recommend to create minimum reproducible test repo when you use boilerplates, because it is hard to debug |
I got the same on my react PWA after updating all packages:
|
this change seems to be breaking it: v2.4.1...v2.4.2#diff-bfe9874d239014961b1ae4e89875a6155667db834a410aaaa2ebe3cf89820556 previously it checked if module.resource was nonnull before continuing. |
you can work around this locally by setting a selective version resolution: https://classic.yarnpkg.com/en/docs/selective-version-resolutions/ (I set it to 2.4.1 until this issue gets resolved) |
/cc @ricardogobbosouza regression 😞 |
Came here to say this. Just spent the last 20 minutes checking through my commits today under the impression I had broken my build process. At least we picked it up quicky! |
Same thing here, the module in question is:
intl's |
Easy to fix: https://github.com/webpack-contrib/eslint-webpack-plugin/blob/master/src/index.js#L83 if (module.resource) {
const file = module.resource.split('?')[0];
if (
file &&
micromatch.isMatch(file, wanted) &&
!micromatch.isMatch(file, exclude)
) {
// Queue file for linting.
lint(file);
}
} |
@alexander-akait fixed #63 |
same problem happened in MacOS, even just create a new react app using create-react-app. It should be a bug in the latest version. |
Same problem happened in Ubuntu - and this happened just recently. Not sure what happened, I just reinstalled my
And it comes from
|
const file = (module.resource || '').split('?')[0];
if (
file &&
micromatch.isMatch(file, wanted) &&
!micromatch.isMatch(file, exclude)
) {
// Queue file for linting.
lint(file);
} |
Seems fixed in 2.4.3 - thanks |
Not too sure what webpack version I'm using as it's bootstrapped using vue-cli tools.
Stacktrace
Code
vue.config.js
How Do We Reproduce?
Don't know.
The text was updated successfully, but these errors were encountered: