Uniswap / widgets

widgets-uniswap.vercel.app
GNU General Public License v3.0
125 stars 180 forks source link

Bug occurred when it's built #616

Open mavsin opened 1 year ago

mavsin commented 1 year ago

Bug Description I used the widget with Vite. In dev mode, there is no problem, but when I built the project, the following error is occurred. image

Versions

Vite: 4.4.5 React: 18.2.0 TypeScript: 5.0.2 @uniswap/widgets: 2.53.1 ...

Expected Behavior A clear and concise description of what you expected to happen.

Additional Context Add any other context about the problem here (screenshots, whether the bug only occurs only in certain mobile/desktop/browser environments, etc.)

beautyfree commented 11 months ago
import { nodePolyfills } from "vite-plugin-node-polyfills";

{
    plugins: [nodePolyfills()],
}