Skip to content

Error: vue-loader was used without the corresponding plugin #1331

Closed
@indus

Description

@indus

Version

15.2.1

I'm getting the error in the title because this if statement is always false. And that's because the paths used to check for the existence of the plugin doesn't match. They have different separators:

value of NS:               "D:\<root>\node_modules\vue-loader\lib"
property of loaderContext: "D:\\<root>\\node_modules\\vue-loader\\lib"

It is hard to provide a reproduction link because this propably just depends on the OS you are using. Nevertheless this property-lookup-test is insuffiecent for me on windows 7.

ref: vuejs/vue-cli#1345
(when I just uncomment the test, everything works as expected)

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