Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug occurred when it's built #616

Open
up-pro opened this issue Aug 16, 2023 · 1 comment
Open

Bug occurred when it's built #616

up-pro opened this issue Aug 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@up-pro
Copy link

up-pro commented Aug 16, 2023

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

@up-pro up-pro added the bug Something isn't working label Aug 16, 2023
@beautyfree
Copy link

beautyfree commented Oct 24, 2023

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

{
	plugins: [nodePolyfills()],
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants