Skip to content

Conversation

@trbernstein
Copy link
Contributor

Starting a new vite project and selecting svelte-ts template results in an error, because code var in error.js is null. Optional chaining resolves this issue.

Starting a new vite project and selecting svelte-ts template results in an error, because `code` var in error.js is null. Optional chaining resolves this issue.
@trbernstein
Copy link
Contributor Author

Solves #1055.

@dominikg dominikg merged commit 47184d4 into sveltejs:main Dec 18, 2024
6 checks passed
@github-actions github-actions bot mentioned this pull request Dec 18, 2024
dominikg added a commit that referenced this pull request Dec 18, 2024
* Use optional chaining to catch null error codes in error.js Starting a new vite project and selecting svelte-ts template results in an error, because `code` var in error.js is null. Optional chaining resolves this issue. * chore: add changeset --------- Co-authored-by: dominikg <dominik.goepel@gmx.de> (cherry picked from commit 47184d4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants