Skip to content

REGRESSION BUG in 1.1.6+: A valid query string passed to parseQuery should begin with '?' #60

@minecrawler

Description

@minecrawler

There's a regression in version 1.1.6. In 1.1.5 my pipeline works as expected, but in 1.1.6 and 1.1.7 I get the above error. Here's my config:

                    {// pug file
                        test: /\.pug$/i,
                        use: [
                            "file-loader?name=[name].html",
                            "extract-loader",
                            "raw-loader",
                            "pug-html-loader",
                        ],
                    },

and here's the full error message:

    ModuleBuildError: Module build failed (from ./node_modules/pug-html-loader/lib/index.js):
    TypeError: util.parseQuery is not a function
        at module.exports (C:\...\node_modules\pug-html-loader\lib\index.js:17:18)
        at processResult (C:\...\node_modules\webpack\lib\NormalModule.js:891:19)
        at C:\...\node_modules\webpack\lib\NormalModule.js:1037:5
        at C:\...\node_modules\loader-runner\lib\LoaderRunner.js:400:11
        at C:\...\node_modules\loader-runner\lib\LoaderRunner.js:252:18
        at runSyncOrAsync (C:\...\node_modules\loader-runner\lib\LoaderRunner.js:156:3)
        at iterateNormalLoaders (C:\...\node_modules\loader-runner\lib\LoaderRunner.js:251:2)
        at C:\...\node_modules\loader-runner\lib\LoaderRunner.js:224:4
        at C:\...\node_modules\webpack\lib\NormalModule.js:991:15
        at Array.eval (eval at create (C:\...\node_modules\tapable\lib\HookCodeFactory.js:33:10), <anonymous>:12:1)
        at runCallbacks (C:\...\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:45:15),

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions