-
-
Notifications
You must be signed in to change notification settings - Fork 200
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
Included override of Process
type makes svelte-check
fail
#2483
Comments
This was always present (I never really noticed it until now, was added long before my time), I'm wondering why this fails now and did not earlier - likely because of the Node typings bump you did at the same time? What happens if you revert that? (not saying that is the fix, just want to clarify) |
No, the Node types bump was a failed attempt at fixing the error. The error happens without that change |
It's because declare namespace NodeJS {
interface Process {
browser: boolean
}
} Didn't catch this before otherwise I would want to remove it as part of breaking changes😅 |
I'm pretty sure it's only there because of Svelte Native, and I'm totally fine with removing this in a bug fix, and retroactively add this as a breaking change |
Seems like it's also a Webpack 4 thing. But this really doesn't seem to be needed in our shim file. |
Describe the bug
I get the following with
svelte-check
version 4 in the SvelteKit repo:This seems to be caused by code from this repo:
Reproduction
See the branch https://github.com/sveltejs/kit/tree/svelte-check-4 from sveltejs/kit#12646
Expected behaviour
I can upgrade
svelte-check
to v4 without issueSystem Info
Which package is the issue about?
svelte-check
Additional Information, eg. Screenshots
No response
The text was updated successfully, but these errors were encountered: