Comments (3)
目前vite
对于dynamic require of xxx
支持不是特别好,目前暂未发现较好的解决方案,暂时决定等后续amis支持esm后再进行支持vite。
类似问题:vitejs/vite#5308 , 但是提供的解决方案vite-plugin-commonjs
对amis不生效
同时为了加快编译,master分支webpack已支持HMR
功能。
第一次启动后,如果更改amis
代码,一般都会在2s内完成编译,欢迎试用。
from react-amis-admin.
大佬 现在vite有继续研究吗,我也是遇到这个问题,试了尤大的方案集成monaco-editor后还是报这个错
from react-amis-admin.
@hxj0x 这个问题已经修复了,可以尝试最新vite
分支。
由于amis
2.0已经支持了esm
,但是2.0的amis对chart的实现仍然有一些bug。
我已经给amis官方提了个PR,参考 baidu/amis#4904
不过我临时利用patch-package
在本项目修复了该问题,目前可以使用vite分支来验证。
from react-amis-admin.
Related Issues (20)
- mobx有冲突? HOT 2
- 日期显示英文 HOT 5
- 集成 amis-editor renderer with name "remark" has already exists, please try another name! HOT 1
- 登录页面 axios 登录请求 不走代理 HOT 4
- amis 如何配置 cdn 加载 HOT 2
- svg 注册为amis Icon 有问题 HOT 2
- 选中文件夹没有高亮 HOT 1
- 使用 crud 组件 新事件 删除 请求 HOT 1
- 是否可以增加多页签功能 HOT 1
- 加载amis自定义组件时报错:Uncaught TypeError: Cannot set properties of undefined (setting 'amisWidget') HOT 3
- Error after npm run dev HOT 3
- 如何切换主题为antd?感觉antd的菜单栏配色更容易看得清文字 HOT 2
- 引入antd组件后为什么antd样式都被覆盖了,有什么解决办法吗? HOT 6
- 请教下, 使用amis的components组件,有没有详细文档 HOT 1
- 能否将react版本升级到18.2.0 HOT 4
- 如何设置amis的context
- react18这个分支有警告信息 HOT 1
- 有没有办法改改AMisRenderer.tsx文件,让支持为每个页面注入一些信息到context
- 修改接口请求域名 HOT 1
- react18的警告信息依然存在
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-amis-admin.