-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Package now compiles Typescript files to CJS instead of ESM #4764
Comments
Weird... I just checked the changelog for 314 => 315, and this is the only line I could possibly see that might cause this issue, but it shouldn't be the problem. I'll try to look further into this when I get home to at least triage. |
Possibly related #4460 |
This commit seems like the culprit, changelog didn't pick up on it 2bb2ab0 |
Oh, it's a create-svelte change, that's why |
Thanks @gtm-nayan that might be indeed the culprit. If you set target and lib to what was generated before, does the error go away?
|
Thank you, all! I created a new svelte-kit app and copied in the default compilerOptions from the j/tsconfig.json file and all is working as expected using this tsconfig: I know it's not 1.0, but it'd be nice for that to be documented somewhere as breaking change. I had already scoured the docs and changelogs ahead of posting my bug but it wasn't there of course. |
Describe the bug
Upgrading from @sveltejs/kit@1.0.0-next.314 to @sveltejs/kit@1.0.0-next.315 will change the output of svelte-kit package as follows:
My package is now broken when trying to install in another app (
ReferenceError: exports is not defined
in reference to an action defined in a .js file) if I upgrade SvelteKit and I'm forced to stay .314.Reproduction
pnpm i
pnpm package
- look at any compiled .js filed inside /packagepnpm i
pnpm package
and inspect different results in compiled .js files in /packageLogs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: