Importing in typescript node js is reporting error #267
tskarthikus
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Application: Node.JS
Language: Typescript
The index.js is generated file while installing through package.json.
I am stuck with the following error when building:
Error: require() of ES Module node_modules\opencascade.js\dist\index.js not supported.
Instead change the require of index.js to a dynamic import() which is available in all CommonJS modules.
Beta Was this translation helpful? Give feedback.
All reactions