-
Notifications
You must be signed in to change notification settings - Fork 24
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 with SSR: require is not defined #156
Comments
run |
Thanks @omridevk for your feedback. We still need to focus into the SSR story, would you like to tackle the problem? |
sure, it was quite easy to resolve this by using
and using |
@omridevk awesome 👏 I'm looking forward to testing your PR 🚀 |
@omridevk could you please post a PR or where to use your fix above. We seem to struggle with a simular problem =/ |
We are also facing the same problem in SvelteKit. It was working in version 0.2.8. see #163 |
Yes sorry, had to shift my focus on something else, hopefully will get to this, this week |
I couldn't find a workaround for this issue. I'm testing this with Remix app. |
@gioboa I was able to get the preview working, but I can't seem to be able to run tests, it is running into some memory issues, i'll add the logs later today |
|
@omridevk nice 👏 great |
when using SSR, I am getting the following error:
see stackblitz for reproduction:
https://stackblitz.com/edit/github-ad1c93-e4uuvj?file=vite.config.ts,src/main.jsx,test.js
vite config:
The text was updated successfully, but these errors were encountered: