sapphiredev / utilities

Common JavaScript utilities for your TypeScript projects
https://www.sapphirejs.dev/
MIT License
157 stars 39 forks source link

bug: Snowflake@3.5.4 + vite build error #831

Closed liuzhaowei55 closed 2 weeks ago

liuzhaowei55 commented 2 weeks ago

Is there an existing issue for this?

Description of the bug

x Build failed in 209ms
error during build:
src/App.tsx (2:9): "TwitterSnowflake" is not exported by "node_modules/.pnpm/@sapphire+snowflake@3.5.4/node_modules/@sapphire/snowflake/dist/iife/index.global.js", imported by "src/App.tsx".

v3.5.3 is OK

Steps To Reproduce

https://stackblitz.com/edit/vitejs-vite-hfct2q?file=src%2FApp.tsx

npm run build

Expected behavior

build success

Screenshots

No response

Additional context

No response

System Info

System:
    OS: Linux 5.0 undefined
    CPU: (8) x64 Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz
    Memory: 0 Bytes / 0 Bytes
    Shell: 1.0 - /bin/jsh
  Binaries:
    Node: 18.20.3 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 10.2.3 - /usr/local/bin/npm
    pnpm: 8.15.6 - /usr/local/bin/pnpm
liuzhaowei55 commented 2 weeks ago

PR https://github.com/sapphiredev/utilities/pull/830