-
-
Notifications
You must be signed in to change notification settings - Fork 256
options.name should be string #215
Comments
Please show your full webpack.config.js |
@michael-ciniawsky attached my webpack config. Thanks, |
@DanielG2002 Please update to |
@michael-ciniawsky tried with url-loader v0.6.2 with same result |
I'm doing something very similar for work & this is reproducible in 0.6.1 & not 0.6.2. @DanielG2002 - Double check that you don't have a package cached by npm / yarn as well as verifying what's in your lock file ( if you are using one ) |
@michael-ciniawsky 100% confirmed! 0.6.2 has the same issue. package-lock.json (double checked also in node_modules directory) |
@DanielG2002 - I assume given you didn't link a repo that whatever you are working on isn't public. Is that based off of create react app? |
@michael-ciniawsky Exactly, is a private repo. Yes, was created using create react app. Clearly the problem is the transfer of the value option.name from url-loader to file-loader; in my url-loader, is a function and your file-loader expect only a string type. For example: { |
Yeah, that part I get. I just wanted to fork whatever that is so we can test the rest of the schema enforcement PR's against it + the angular-cli ( covers a vast majority of the use cases ) |
file-loader: 1.1.4
webpack: 3.6.0
npm: 5.3.0
node: 8.6.0
...
options: {
name: 'static/media/[name].[ext]',
}
....
Module build failed: Validation Error
File Loader Invalid Options
options.name should be string
The text was updated successfully, but these errors were encountered: