t3-oss / t3-env

https://env.t3.gg
MIT License
2.67k stars 86 forks source link

Updating from 0.8.0 to 0.9.2 seems to have broken import paths #204

Closed zoominGiladSher closed 6 months ago

zoominGiladSher commented 7 months ago

Dependabot has suggested we update the package from 0.8.0 to 0.9.2, however, the import of createEnv now fails -- please see the attached screenshots.

Worked before, not working now:

image

New import path required:

image

I suspect that removing support for CJS and the changing of package.json in the last several commits may have caused it but I admit that I didn't have time to dive too deeply into it. Would appreciate you taking a look into it!

Thanks

wottpal commented 6 months ago

Same here. ✋ Using bun, in case that matters.

juliusmarminge commented 6 months ago

This is likely cause you have node as your module resolution. Change it to something more modern (Node16/NodeNext if transpiling with tsc, Bundler if using a bundler) that can read exports condition and you should be fine.

Duplicate of #189