Skip to content

Uncaught SyntaxError: Invalid regular expression flags #142

@gossi

Description

@gossi

We have updated our ember versions to ember-cli@~3.5.0 and ember-source to ember-source@~3.6.0-beta.2. Since them our test suite is failing because ember-auto-import generates an Uncaught SyntaxError: Invalid regular expression flags error.

See here:
bildschirmfoto 2018-10-29 um 16 59 37

Which shows up in the console:
bildschirmfoto 2018-10-30 um 14 23 42

Clicking on the /assets/client/.../tests-dev.js in the top right corner reveals the error:
bildschirmfoto 2018-10-30 um 14 24 22

That said, ember-auto-import is not a direct dependency of us (yet), but sneaked in as a transitive dependency. I tried to forbidEval but that has no effect.

I'm around in discord, hit me up. Can pair on this one.

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