You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to implement loading components from an ESM CDN, this works fine in the browser, but when trying to do SSR and calling ssrLoadModule, I am getting the following error:
6:02:47 PM [vite] Error when evaluating SSR module /src/pages/customer-page.tsx: failed to import "https://esm.sh/[email protected]"
Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to vuejs/core instead.
Hello @omridevk. Please provide a minimal reproduction using a GitHub repository or StackBlitz. Issues marked with need reproduction will be closed if they have no activity within 3 days.
Describe the bug
I am trying to implement loading components from an ESM CDN, this works fine in the browser, but when trying to do SSR and calling ssrLoadModule, I am getting the following error:
Reproduction
https://stackblitz.com/edit/github-ad1c93-e4uuvj?file=package.json
Run
npm run test
to see the error.Steps to reproduce
No response
System Info
Used Package Manager
npm
Logs
No response
Validations
The text was updated successfully, but these errors were encountered: