-
Notifications
You must be signed in to change notification settings - Fork 375
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_import_0__.template is not a function
when using ag-grid-solid
#690
Comments
My guess is ag-grid is precompiled to be client only and breaks with SSR. I don't know it makes sense trying to server render it. What's the goal? |
I was moving a CSR solid app to solid-start and wanted to keep it CSR. I thought When I
This is in both Ubuntu and Windows. I'm not sure if I should be using the Node adapter, so I tried solid({
ssr: true,
adapter: solidStatic(),
}) (I have However,
Unsurprisingly, |
Try in 0.2.19. Hopefully this fixed. |
Ah, I should've tried that first... because it worked! (edit: didn't realize However, both
(It looks like WSL is my main dev environment so this isn't a problem for me. However, I'm going to leave this open as it is still technically an open issue. Thanks very much! |
Perhaps not; ref #720 |
Ah, it looks like a regression occurred between
I looked at ae36320 and 0a27fc2 but it isn't obvious to me what the problem is. In particular, the I believe this issue affects all Windows devs. |
Thanks.. You are right we broke windows. Let me see what I did this time. |
In setting up for SolidStarts next Beta Phase built on Nitro and Vinxi we are closing all PRs/Issues that will not be merged due to the system changing. If you feel your issue was closed by mistake. Feel free to re-open it after updating/testing against 0.4.x release. Thank you for your patience. See #1139 for more details. |
Steps to reproduce:
npm init solid@latest
, bare with no SSRpnpm i
pnpm i ag-grid-solid ag-grid-community
import AgGridSolid from 'ag-grid-solid';
and<AgGridSolid />
toindex.tsx
npm run dev
ssr: { noExternal: ["ag-grid-solid"] }
tovite.config.ts
, based on Ryan's answer here.npm run dev
, and get a different error:StackBlitz and Github repro.
ag-grid-solid
works just fine in vanilla solid-js.The text was updated successfully, but these errors were encountered: