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
Throw an error require is not defined when using viteDevServer.ssrLoadModule to load the SSR entry file.
Seems the error come from the pkg apollo-upload-client import the extract-files
But the errors to require file is existing
And the error does not throw when I using vite build --ssr index.ts
Reproduction
Create a file then import the apollo-upload-client', see like:
Describe the bug
Throw an error
require is not defined
when usingviteDevServer.ssrLoadModule
to load the SSR entry file.Seems the error come from the pkg
apollo-upload-client
import theextract-files
But the errors to require file is existing
And the error does not throw when I using
vite build --ssr index.ts
Reproduction
apollo-upload-client'
, see like:Then get the error.
System Info
vite
version: 2.0.1The text was updated successfully, but these errors were encountered: