Skip to content

Commit 57e9c90

Browse files
authored
Update README.md
1 parent 111ab30 commit 57e9c90

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

demos/vue-demo/README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,15 @@ npm run lint
3232
2. 配置babel 中添加 `@babel/plugin-transform-optional-chaining`
3333

3434
问题已经记录, 后续会进行兼容
35-
35+
36+
- 最近 vue2 的老版本在构建 `ezuikit-js` 时, 报错 `Can't import the named export 'ResizeObserver' from non EcmaScript module (only default export is available)`.
37+
38+
解决方法:
39+
40+
1. 升级 `vue-cli-service` 到最新版
41+
2. 配置`vue.config.js` 支持 .mjs, 如下图
42+
![image](https://github.com/user-attachments/assets/b461a400-2a29-4814-b70e-f3b3cbef8ff6)
43+
3644

3745
### Customize configuration
3846
See [Configuration Reference](https://cli.vuejs.org/config/).

0 commit comments

Comments
 (0)