Closed NotEvenANeko closed 1 year ago
The file index.m.css is missing in the dist directory of 4.5.0.here
index.m.css
dist
And the package.json still have
package.json
"exports": { "./dist/index.css": { "import": "./dist/index.m.css", "require": "./dist/index.css" } }
which cause vite to throw Error: [vite]: Rollup failed to resolve import "antd-country-phone-input/dist/index.css" from "/SomeProject/index.tsx". when some components do import 'antd-country-phone-input/dist/index.css.
Error: [vite]: Rollup failed to resolve import "antd-country-phone-input/dist/index.css" from "/SomeProject/index.tsx".
import 'antd-country-phone-input/dist/index.css
demo
oops.. can you try 4.5.1?
4.5.1
Problem solved, thanks!
The file
index.m.css
is missing in thedist
directory of 4.5.0.hereAnd the
package.json
still havewhich cause vite to throw
Error: [vite]: Rollup failed to resolve import "antd-country-phone-input/dist/index.css" from "/SomeProject/index.tsx".
when some components doimport 'antd-country-phone-input/dist/index.css
.demo