-
-
Notifications
You must be signed in to change notification settings - Fork 14.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
[Component] [tour] CDN 下使用el-tour 会报错aria.ts:22 Uncaught (in promise) ReferenceError: process is not defined #16861
Comments
Please provide a mini reproduction and screenshot. |
检查了构建后的代码,确实包含了 https://unpkg.com/element-plus@2.7.3/dist/index.full.js 似乎是当前构建脚本中 esbuild define 定义的 // ...
+import replace from '@rollup/plugin-replace'
esbuild({
// ...
define: {
'process.env.NODE_ENV': JSON.stringify('production'),
},
// ...
}),
+replace({
+ 'process.env.NODE_ENV': JSON.stringify('production'),
+}), cc: @btea @warmthsea |
并不能解决问题 |
需要elp库更改 |
@warmthsea 要不你开个 PR 先按这个方案改下? |
好的 |
@360060316 |
测试dev版已修复 |
请于正式版2.7.4发布后替换为正式版的地址 |
Bug Type:
Component
Environment
3.4.27
2.7.3
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/124.0.0.0
Vite
Reproduction
Related Component
el-tour
Reproduction Link
Docs
Steps to reproduce
调试 发布均不能正常
What is Expected?
正常运行
What is actually happening?
控制台报错
Additional comments
(empty)
The text was updated successfully, but these errors were encountered: