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 was archived by the owner on Mar 17, 2021. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
@michael-ciniawsky Not sure if it’s what you asked, but I tried changing context: to rootContext: in the webpack config but that obviously resulted in a configuration error.
So then I assumed you meant file-loader, and I went to index.js:34 and made the following change:
Not sure if it’s what you asked, but I tried changing context: to rootContext: in the webpack config but that obviously resulted in a configuration error.
You mean aValidationError in particular here ? :) That's to be expected then, but the change in question (this.options.context => this.rootContext) needs to be made elsewhere. Could you try
Activity
michael-ciniawsky commentedon Dec 5, 2017
Could you please try the suggestion in webpack/webpack#6064 (comment) using
rootContextinstead ofcontextand provide the results/errors here ?[-]webpack 4.0.0-alpha.0 breaking changes[/-][+][webpack v4.0.0-alpha.0] `this.context` => `this.rootContext` (Breaking Change)[/+]drwpow commentedon Dec 5, 2017
@michael-ciniawsky Not sure if it’s what you asked, but I tried changing
context:torootContext:in the webpack config but that obviously resulted in a configuration error.So then I assumed you meant file-loader, and I went to index.js:34 and made the following change:
And it successfully built and emitted files.
At least in my instance,
this.optionswasn’t defined, andoptionswas just an empty object ({}).michael-ciniawsky commentedon Dec 5, 2017
You mean a
ValidationErrorin particular here ? :) That's to be expected then, but the change in question (this.options.context=>this.rootContext) needs to be made elsewhere. Could you trydrwpow commentedon Dec 5, 2017
@michael-ciniawsky Yup! That works for me—
this.rootContextcorrectly returns the context. @TheLarkInn’s change in #234 seems to work for me.michael-ciniawsky commentedon Dec 5, 2017
@DangoDev Thx for testing that out :)
Wisedemic commentedon May 26, 2018
This error is still happening! The above code fixed it for me.