Skip to content

Invalid regular expression: /^[native$/: Unterminated character class with HMR #232

@MikaAK

Description

@MikaAK

Using HMR in one of my apps has started giving me

Uncaught SyntaxError: Invalid regular expression: /^[native$/: Unterminated character class

on debug.js:148.
What seems to be happening is namespaces seems to come in as [native which causes it to error out. Removing --inline and HMR fixes this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions