Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Runtime error in 9.3.0 #62

Closed
de-don opened this issue Nov 19, 2024 · 2 comments
Closed

Runtime error in 9.3.0 #62

de-don opened this issue Nov 19, 2024 · 2 comments

Comments

@de-don
Copy link

de-don commented Nov 19, 2024

After updating to 9.3.0 from 9.2.1 I faced the issue:

 import pkg, { isPropertyAccessExpression, isCallExpression } from 'typescript';
                                                ^^^^^^^^^^^^^^^^
      SyntaxError: Named export 'isCallExpression' not found. The requested module 'typescript' is a CommonJS module, which may not support all module.exports as named exports.
      CommonJS modules can always be imported via the default export, for example using:
      
      import pkg from 'typescript';
      const { isPropertyAccessExpression, isCallExpression } = pkg;
      
          at ModuleJob._instantiate (node:internal/modules/esm/module_job:146:21)
          at async ModuleJob.run (node:internal/modules/esm/module_job:229:5)
          at async ModuleLoader.import (node:internal/modules/esm/loader:473:24)
      
      Node.js v20.17.0
      
      Pass --verbose to see the stacktrace.

Versions:

"typescript": "5.4.5",
"@ngx-translate/core": "15.0.0",
"@vendure/ngx-translate-extract": "9.3.0",
@pmpak
Copy link

pmpak commented Nov 19, 2024

Hello, the issue has been resolved by #60 and will be available in the next release.

@de-don de-don closed this as completed Nov 19, 2024
@michaelbromley
Copy link
Member

v9.3.1 was just published 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants