widgets icon indicating copy to clipboard operation
widgets copied to clipboard

Bug occurred when it's built

Open mavsin opened this issue 1 year ago • 1 comments

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.)

mavsin avatar Aug 16 '23 15:08 mavsin

import { nodePolyfills } from "vite-plugin-node-polyfills";

{
	plugins: [nodePolyfills()],
}

beautyfree avatar Oct 24 '23 16:10 beautyfree