-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
Vite: SSR compile error with importing *.client.ts #7972
Labels
Comments
1 task
Also running into this during a migration |
2 tasks
Fixed by #8200 |
🤖 Hello there, We just published version Thanks! |
🤖 Hello there, We just published version Thanks! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What version of Remix are you using?
2.2.0
Are all your remix dependencies & dev-dependencies using the same version?
Steps to Reproduce
When a route imports *.client.ts, it results in compile error
Here's repro https://stackblitz.com/edit/github-suecku?file=app/something.client.ts,app/routes/_index.tsx
Expected Behavior
vite build --ssr
succeeds, andmyAlert
is providedundefined
in server (according to https://remix.run/docs/en/main/file-conventions/-client)Actual Behavior
vite build --ssr
results in compile errorThe text was updated successfully, but these errors were encountered: