haishanh / yacd

Yet Another Clash Dashboard
http://yacd.haishan.me
MIT License
4.16k stars 736 forks source link

npm start failed #813

Closed yangrq1018 closed 10 months ago

yangrq1018 commented 10 months ago

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 unhappy

  "exports": {
    "require": "./dist/index.cjs",
    "default": "./dist/index.modern.js"
  },

comment this part and problem is gone.

hinak0 commented 10 months ago

use pnpm instead.

yangrq1018 commented 10 months ago

It works, thanks.