ant-design-colors icon indicating copy to clipboard operation
ant-design-colors copied to clipboard

esm导入仍然有问题

Open ZCY-G opened this issue 6 months ago • 2 comments

import React from "https://esm.sh/[email protected]";
import ReactDOM from "https://esm.sh/[email protected]";
import { Button } from "https://esm.sh/[email protected]?alias=@ant-design/[email protected]";

报错

Uncaught SyntaxError: The requested module '/@ant-design/colors@^7.0.0?target=es2022' does not provide an export named 'blue'

@afc163 麻烦再让人看下。

ZCY-G avatar Oct 14 '25 00:10 ZCY-G

使用https://esm.sh/[email protected]?deps=react@18,react-dom@18&bundle导入就可以

ZCY-G avatar Oct 14 '25 01:10 ZCY-G

这个问题可以修复下吗?esm导入有问题无法正确引用antd

fengyunhaozjgsu avatar Dec 08 '25 07:12 fengyunhaozjgsu