Skip to content

tsgen tool is not compatible with MJS version of breeze-client. #38

@EchoFoxxtrot

Description

@EchoFoxxtrot

When I attempt to re-generate my entities using the tsgen tool with breeze-clilent@mjs, I receive the following error:
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\GitHub\gitlab.disney.com\ghro.disney.com\ghro.disney.com.web\ClientApp\node_modules\breeze-client\fesm2015\breeze-client.mjs not supported. Instead change the require of C:\GitHub\gitlab.disney.com\ghro.disney.com\ghro.disney.com.web\ClientApp\node_modules\breeze-client\fesm2015\breeze-client.mjs to a dynamic import() which is available in all CommonJS modules.

I had to revert back to breeze-client@2.1.5 to generate my entity set.

Could tsgen be updated with an MJS version? Thanks! :)

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