vue-cli 迁移的时候报 Uncaught TypeError: $ is not a function #2318
-
index.js:662 Uncaught TypeError: $ is not a function const IS_PROD = ['production'].includes(process.env.NODE_ENV!) const assetsCDN = { const sourceMapFlag = !IS_PROD || argv.sso_env ? 'source-map' : false export default defineConfig(({ envMode, env }) => {
} |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
报错来源是 core-js,也有可能是 core-js 的一些问题,可以试着升级 rsbuild 和 core-js 的最新版本尝试一下 如果不是的话,需要提供一个最小复现比较好追踪问题 |
Beta Was this translation helpful? Give feedback.
-
This is a bug of https://github.com/web-infra-dev/rsbuild/pull/2242/files#diff-af4d9c7fea4cdc0eff34a41ef465c73e9f9ec573ad9d510cc670a366e1e5129aR270 this rule is so broad that we transform the you can set |
Beta Was this translation helpful? Give feedback.
Fixed in v0.6.15: https://github.com/web-infra-dev/rsbuild/releases/tag/v0.6.15