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

Fix CJS entry point #659

Merged
merged 2 commits into from
Jan 15, 2024
Merged

Fix CJS entry point #659

merged 2 commits into from
Jan 15, 2024

Conversation

inukshuk
Copy link
Contributor

Closes #649

@pailhead
Copy link

I am unable to import TWEEN with typescript, whatsoever.

@ronaldcurtis ronaldcurtis mentioned this pull request Aug 26, 2023
@cuixiping cuixiping mentioned this pull request Nov 17, 2023
SilkePilon added a commit to SilkePilon/prismarine-viewer that referenced this pull request Dec 19, 2023
this is no permanent fix as is nice to have a package up-to-date but for now until tweenjs/tween.js#659 is merged it works
@SilkePilon
Copy link

this needs to be merged rn.....

rom1504 pushed a commit to PrismarineJS/prismarine-viewer that referenced this pull request Dec 19, 2023
* Roll back tweenjs to 18.6.4

this is no permanent fix as is nice to have a package up-to-date but for now until tweenjs/tween.js#659 is merged it works

* update to the latest working version (19.0.0)
@trusktr
Copy link
Member

trusktr commented Jan 14, 2024

Hello! Is this still needed after the recent changes in main? Released in v21.1.0

The exports field now includes the link to the types, however the cjs file name has not changed.

Can you import in TypeScript now @pailhead?

Do we still need to change the name @inukshuk?

@trusktr
Copy link
Member

trusktr commented Jan 15, 2024

Yep, the naming needed to be changed. I added an example Node.js CommonJS project in examples/example-projects/nodejs-commonjs/ to test it out.

Thanks! Merged!

@trusktr trusktr merged commit fac1ba9 into tweenjs:main Jan 15, 2024
@trusktr
Copy link
Member

trusktr commented Jan 15, 2024

Release in v22.0.0 (major versio bump because the file name changed, just in case anyone somehow relied on the .cjs.js file in any way).

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

Successfully merging this pull request may close these issues.

CJS entry point can't be loaded in Node.js
4 participants