You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm submitting a ...
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[x] question about how to use this project
Summary
Hi there,
I'm using the generated build within Node.js application.
I've a typescript file (in src/lib) that exports a default class and several interfaces.
When trying to require the CommonJS file, I have to do that:
Hi there – that code snippet seems to be the right way to import from a CommonJS project. If you're still having trouble, feel free to open a new issue!
I'm submitting a ...
[ ] bug report
[ ] feature request
[ ] question about the decisions made in the repository
[x] question about how to use this project
Summary
Hi there,
I'm using the generated build within Node.js application.
I've a typescript file (in src/lib) that exports a default class and several interfaces.
When trying to require the CommonJS file, I have to do that:
How to handle javascript module and CommonJS ?
ES6 Modules default exports interop with CommonJS microsoft/TypeScript#2719
The text was updated successfully, but these errors were encountered: