Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

options.name should be string #215

Closed

Description

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

Activity

  1. michael-ciniawsky commented on Oct 4, 2017

    @michael-ciniawsky
    Member

    Please show your full webpack.config.js

  2. michael-ciniawsky commented on Oct 4, 2017

    @michael-ciniawsky
    Member

    @DanielG2002 Please update tourl-loader to >= v0.6.1. It has had a bug to not allow additional properties and therefore seem to be failing on the additional name prop. Otherwise feel free to reopen the issue and we maybe need to disable the type check for name then. Also try a minimum example in case it is still failing, to ensure it isn't another config related bug

  3. joshwiens commented on Oct 5, 2017

    @joshwiens
    Contributor

    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 )

  4. joshwiens commented on Oct 5, 2017

    @joshwiens
    Contributor

    @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?

  5. joshwiens commented on Oct 5, 2017

    @joshwiens
    Contributor

    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 )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions