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
ValidationError: Invalid options object. Imports Loader has been initialized using an options object that does not match the API schema.
- options should be one of these:
object { imports, … } | object { wrapper, … } | object { additionalCode, … }
Details:
* options has an unknown property 'this'. These properties are valid:
object { imports, … } | object { wrapper, … } | object { additionalCode, … }
* options has an unknown property 'fix'. These properties are valid:
object { imports, … } | object { wrapper, … } | object { additionalCode, … }
* options misses the property 'imports' | should be any non-object.
* options misses the property 'wrapper' | should be any non-object.
* options misses the property 'additionalCode' | should be any non-object.
suppose i should modify it as following
{test: require.resolve('snapsvg/dist/snap.svg.js'),use: [{loader: 'imports-loader',// some config}],},
but how to config it as the same as 'imports-loader?this=>window,fix=>module.exports=0' ?
The text was updated successfully, but these errors were encountered:
Same issue with me, I tried inline as shown below but no luck. const Snap = require(imports-loader?imports=default|snapsvg|Snap&wrapper=window&!snapsvg/dist/snap.svg.js);
in webpack config with [email protected]
not working, and saying
suppose i should modify it as following
but how to config it as the same as
'imports-loader?this=>window,fix=>module.exports=0'
?The text was updated successfully, but these errors were encountered: