使用webpack作为打包工具时,打包出现如下错误 ReferenceError: document is not defined。如何处理? #1305
-
具体报错如下:
只是打包中,还没浏览器运行。 使用的版本:
|
Beta Was this translation helpful? Give feedback.
Answered by
Mister-Hope
Apr 19, 2023
Replies: 1 comment
-
https://vuejs.press/advanced/cookbook/usage-of-client-config.html#use-non-ssr-friendly-features-1 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cander0815
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://vuejs.press/advanced/cookbook/usage-of-client-config.html#use-non-ssr-friendly-features-1