Skip to content

Cannot use 'import.meta' outside a module on 0.36.0 (not 0.34.0) #1019

@frbuceta

Description

@frbuceta

I just updated from version 0.34.0 to 0.36.0. In version 0.34.0 it works perfectly.

ncc: Version 0.36.0
ncc: Compiling file index.js into CJS
...
esm_dirname = (0,external_url_.fileURLToPath)(import.meta.url);
                                                       ^^^^

SyntaxError: Cannot use 'import.meta' outside a module
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleased

    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