Skip to content

Module parse failed: Invalid labeled declaration #27

@vsbeats

Description

@vsbeats

So, i use webpack and babel-loader with next presets: "env", "react".
An error occurs during the build:

ERROR in ./node_modules/js-xpath/src/parser.js
Module parse failed: Invalid labeled declaration (423:26)
You may need an appropriate loader to handle this file type.
|                 lstack.length = lstack.length - n;
|             }
|             _token_stack: var lex = function lex() {
|                 var token;
|                 token = lexer.lex() || EOF;
 @ ./node_modules/js-xpath/src/main.js 3:13-35

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