Skip to content

Error: Cannot use import statement outside a module #623

Closed
@tobiasdiez

Description

@tobiasdiez

When used with graphql-codegen-esm, the following error is triggered:

(node:2159) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.
(Use `node --trace-warnings ...` to show where the warning was created)
[FAILED] 
[FAILED]               Unable to load template plugin matching 'typescript-validation-schema'.
[FAILED]               Reason:
[FAILED]                 Cannot use import statement outside a module
[FAILED]             

This error occurs in 0.14.1, but 0.12.1 was working well. See update PR JabRef/JabRefOnline#2382

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions