Skip to content

Error in release 3.1.1 (Module parse failed: 'import' and 'export' may only appear at the top level (138:339)) #178

@Wellington3010

Description

@Wellington3010

Errror in release 3.1.1

Using version 3.1.1 noticed that the following error message is displayed:

Screenshot from 2021-04-25 21-06-11

Changing version in package.json for 2.13.6, the error message is not displayed and project works.

Analyzing the loader code in version 3.1.1 I found that in the hot-api.js file we have an export that is not at the top-level of the file, contrary to the JS strict mode ES6 rule.
I believe this could be the mistake.

Screenshot from 2021-04-25 21-12-30

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