Skip to content
This repository was archived by the owner on Oct 23, 2019. It is now read-only.
This repository was archived by the owner on Oct 23, 2019. It is now read-only.

Module build failed: TypeError: this.query.substr is not a function #13

@waleedahmed3045

Description

@waleedahmed3045
  • Operating System: macOS High Sierra
  • Node Version: 10.13.5
  • NPM Version: 5.6.0
  • webpack Version: 4.4.1
  • webpack-serve Version: 3.1.4

This issue is for a:

  • bug

Code

rules: [
{
test: /.js$/,
include: path.resolve("./src/scripts/"),
loader: multi("ng-annotate-loader","babel-loader?cacheDirectory=true"),
options: {
presets: ["es2015"]
}
},

CLI Command

webpack-dev-server

webpack.config.js

Link to Webpack Config Gist

Expected Behavior

The build should make expected files and run the server

Actual Behavior

Getting this error Module build failed: TypeError: this.query.substr is not a function
at Object.module.exports.pitch(/node_modules/multi-loader/index.loader.js:4:36)

which is this line var items = JSON.parse(this.query.substr(1));

How Do We Reproduce?

Run the webpack-dev-server command

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