Run Lin

Results 35 comments of Run Lin

![image](https://user-images.githubusercontent.com/54397964/209930759-82d0050a-4461-4978-abc2-29e98151f280.png) 我想要使用这个方法来解决,但是他好像只能运行在可以使用router的组件中。目前还没有找到好的使用的方法。也许可以将``中包裹的组件进行更换,但是现在没有发现任何好的方法

> > install version [email protected] without this error > > This is not possible because our project is using the `App` component which was released in v5.1.0 我将antd的版本下调到了5.0.0,有趣的是的确如他所说。

> > install version [email protected] without this error > > This is not possible because our project is using the `App` component which was released in v5.1.0 ![image](https://user-images.githubusercontent.com/54397964/210164420-5d432797-f183-43c4-8f71-b26c0f25f3cc.png) ![image](https://user-images.githubusercontent.com/54397964/210164425-01963c28-cc46-4552-99fa-687ee4d3fdc0.png)

Maybe it was an error made by antd during the upgrade

> Ant Design v5.0.0 包含`cssinjs`v1.1.0 包,它没有我们报告的问题。这个问题是从 Ant Design v5.1.0 开始的。 > > 但是,您将遇到 v5.0.0 的主题问题。例如,尝试更改原色,然后创建模态。您会注意到模式没有您选择的原色。为了解决这个问题,AntDesign v5.1.0 添加了一个`App`组件,允许您创建一个具有您配置的主题颜色的模式。 > > > 可能是升级的时候antd出错了 > > 我也这么觉得。 也许,输出style标签和使用主题颜色两个功能,我们暂时只能二选一,等待团队修复这个BUG Maybe we can only choose...

> I didn't try. I thought that outputting HTML to style would result in huge output content on the server side, so I chose antd4. If you let cssinjs run...

> 嘿@chunsch 那太不可思议了。谢谢。 > > “或生成的页面大小太大”是什么意思?上面建议的修复(我也在 Next.js 13 中使用)是否使页面太大?我看到您的 PR 正在做几乎相同的事情,所以我不确定页面在哪里变得太大🤔 Perhaps theis generated in HTML, so the website cannot use CDN. And cause the file loaded for the first...

> I spent a long time trying to deal with the conflict between nextjs13 and antd5, finally, they can work together. And then, I added tailwindcss and dark theme support....

启动之后会把.env和.env.dev合并成一个env文件放到dist里面,然后index去读取.env

对于env.template文件是写入,对于dev是去读,因为防止把一些密钥上传到github上面,每次运行都会生成一个env.template文件用来修改成对应开发环境的环境变量,具体可以查看readme中的环境变量 ![image](https://user-images.githubusercontent.com/54397964/199450180-e2288d89-e3fa-4993-a5cf-37d40cf0b37c.png)