-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
v3.6.34升级到v4.0.7版本后使用vite构建打包,@redux/toolkit的createSlice is not a function #16859
Comments
我也遇到这个问题,切换成webpack5编译试试呢 |
我就是不想用webpack5,跟vite比起来觉得太慢了 |
这篇文章中说,用vite打包微信小程序,没有带来性能提升,是否准确呢 |
自我感觉来说。使用vite打包我现在的项目来说比用webpack5打包要快 |
除了打包快,包大小、运行性能如何啊? |
运行性能的话我还不知道。。。因为vite打包之后就遇到这个问题了,我现在也还是用回webpack5,v3.6.34版本,这个问题的话得抽个时间写个demo复现一下才行不然没人改 |
相关平台
微信小程序
小程序基础库: 3.6.5
使用框架: React
复现步骤
打包@redux/toolkit后微信开发工具出现 vendors.createSlice is not a function 错误,打开common.js和vendor.js存在循环引用
期望结果
正常运行
实际结果
报错
环境信息
The text was updated successfully, but these errors were encountered: