Closed yangrq1018 closed 10 months ago
Run npm start gives error
npm start
[plugin:vite:import-analysis] Missing "./dist/TwemojiCountryFlags.woff2" specifier in "country-flag-emoji-polyfill" package
It seems country-flag-emoji-polyfill package.json has a section which makes vite unhappy
country-flag-emoji-polyfill
"exports": { "require": "./dist/index.cjs", "default": "./dist/index.modern.js" },
comment this part and problem is gone.
use pnpm instead.
It works, thanks.
Run
npm start
gives error[plugin:vite:import-analysis] Missing "./dist/TwemojiCountryFlags.woff2" specifier in "country-flag-emoji-polyfill" package
It seems
country-flag-emoji-polyfill
package.json has a section which makes vite unhappycomment this part and problem is gone.