ssr does not properly handle dynamic import
correctly in onMounted
#8571
Labels
dynamic import
correctly in onMounted
#8571
Forwarded from downstream issue:
dynamic import
correctly inonMounted
nuxt/nuxt#13819 by @baixiaoyu2997Environment
Nuxt project info: 14:31:07
Darwin
v16.14.0
3.0.0-rc.1-27510703.46ecbc5
[email protected]
vite
target
-
-
Reproduction
https://stackblitz.com/edit/nuxt-starter-jvkzzr?file=package.json
run
yarn generate
inTerminal
Describe the bug
build in
server side
, when useimport()
inlifecycle hook
, show errorwindow is not defined
i check in
.nuxt/dist/server/server.mjs
, foundimport()
result at toplevel , like this :Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: