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
sandbox
please download code and run yarn buildstart or run nuxi build and nuxi preview
Describe the bug
When I use element-ui plugin without client mode:
if I run nuxi build && nuxi preview ,after I open localhost:3000 Terminal will throw error: [nuxt] [request error] document is not defined at Object.<anonymous> (./.output/server/node_modules/element-ui/lib/utils/types.js:39:165) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (./.output/server/node_modules/element-ui/lib/utils/util.js:19:14) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
nuxi dev is ok
And when I use element-ui plugin in client mode,I need to put all element-ui component in client-only tag , but in Nuxt2 , I can use it without client mode ,all element-ui components I have Used supports ssr good in Nuxt2
Additional context
why it's ok in nuxi dev but throw error in nuxi preview?
Logs
No response
The text was updated successfully, but these errors were encountered:
Environment
Reproduction
sandbox
please download code and run yarn buildstart or run nuxi build and nuxi preview
Describe the bug
When I use element-ui plugin without client mode:
if I run nuxi build && nuxi preview ,after I open localhost:3000 Terminal will throw error:
[nuxt] [request error] document is not defined at Object.<anonymous> (./.output/server/node_modules/element-ui/lib/utils/types.js:39:165) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10) at Module.load (node:internal/modules/cjs/loader:981:32) at Function.Module._load (node:internal/modules/cjs/loader:822:12) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at Object.<anonymous> (./.output/server/node_modules/element-ui/lib/utils/util.js:19:14) at Module._compile (node:internal/modules/cjs/loader:1105:14) at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
nuxi dev is ok
And when I use element-ui plugin in client mode,I need to put all element-ui component in client-only tag , but in Nuxt2 , I can use it without client mode ,all element-ui components I have Used supports ssr good in Nuxt2
Additional context
why it's ok in nuxi dev but throw error in nuxi preview?
Logs
No response
The text was updated successfully, but these errors were encountered: