-
Notifications
You must be signed in to change notification settings - Fork 124
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
"no exported member" errors when using NodeNext module/moduleResolution in TypeScript #342
Comments
Yes, this is bizarre. I just switched to That links to a related babylon issue BabylonJS/Babylon.js#13797 It looks like it could be spec required file extension. @bhouston how did you end up working around it? |
🎉 This issue has been resolved in version 2.35.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
That is the issue here, in addition to needing the same treatment with |
Had to revert. We're not given the tools necessary to meet these conditions without directly extending the TypeScript compiler. I do plan to deprecate this package as soon as three accepts any upstream contributions here, and they then require ESM for WebGPU (top-level await). Until then, this library effectively serves as a CJS build for |
three
version: n/a@types/three
version: n/athree-stdlib
version: 2.29.4Problem description:
I ran into this bug and it took a while to figure out. It turns out that this library (as well as threes-stdlib) are not compatible with "NodeNext" module/moduleResolution, e.g. if you tsconfig.json looks like this:
And you try to use this library like this:
Code:
You will get compile errors via TSC like this:
You can work around the bug by switching your tsconfig.json to something like this instead:
Relevant code:
Included in the above description.
Suggested solution:
I suspect there is some way to fix this? But I do not yet know. One clue is that @react-three/fiber and @react-three.drei work properly with these tsconfig.json settings.
The text was updated successfully, but these errors were encountered: