Skip to content

Webpack compilation fails with "Module not found: Default condition should be last one" #2022

Closed
@3rdvision

Description

@3rdvision

Subject of the issue

Webpack 5.68.0 fails compilation and throws the error message "Module not found: Default condition should be last one". Affected vue-test-utils versions are 1.3.1 onwards.

Expected behaviour

Compilation is successful.

Actual behaviour

Compilation fails with error.

Possible Solution

Change the order of the default import line here. This convention is being implemented in other places example.
I see no reason why it shouldn't be here. This was introduced here where the issue had a properly ordered example. Maybe it was done by mistake when using a prettier tool? Please @sheremet-va let us know if there's any strong reason why the default should be first instead of last.

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