-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛[BUG]Uncaught ReferenceError: process is not defined #6164
Comments
|
同样的问题,在webpack下也出现了 |
vite.config.ts 下加入 define: {
'process.env': {}
} |
This will lead to another bug related to useSWR |
// vite.config.ts
import { version } from 'antd'
export default defineConfig(() => ({
define: {
'process.env.ANTD_VERSION': `"${version}"`,
}
})) |
用户侧处理不太友好吧?能不能从代码层面解决,比如链式操作符。 |
Same issue here... |
this bug has come back |
this work only in dev mode when shipping to production it comes back again |
package is fully broken |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 bug 描述
📷 复现步骤
命令行运行
vite
。🏞 期望结果
正常渲染 ProLayout
💻 复现代码
© 版本信息
🚑 其他信息
The text was updated successfully, but these errors were encountered: