Skip to content

vue-loader errored when html-loader is defined BEFORE it in webpack 5 configuration. #1625

Open
@ryanelian

Description

@ryanelian

Version

15.8.3

Reproduction link

https://github.com/ryanelian/vue-loader-bug

Steps to reproduce

Add this line before vue-loader in webpack 5 configuration.

            {
                test: /\.html?$/,
                loader: 'html-loader'
            },

What is expected?

No error.

What is actually happening?

⬢ webpack: Error: [VueLoaderPlugin Error] No matching use for vue-loader is found.
Make sure the rule matching .vue files include vue-loader in its use.


This is almost exactly the same as a past issue: #1246
But this time it's webpack 5.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions