-
Notifications
You must be signed in to change notification settings - Fork 193
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
v2.25: Cannot find module @uniswap/conedison/dist/format #404
Comments
Same |
1 similar comment
Same |
this is a known issue in our |
@just-toby which is the stable version ? If we are waiting for the conedison number formatting library to update ? |
@ZiggStardust i don't think there's a breaking change in this repo - we've always remapped our imports of |
@ZiggStardust vetsion |
Here's what I tried for a NextJS app with version 2.25.0 or higher :
|
Had luck with disabling SSR for that particular component with a dynamic component: https://blog.bitsrc.io/using-non-ssr-friendly-components-with-next-js-916f38e8992c |
@marcinciarka like that? |
Not sure if this will help, but I struggled with the dynamic imports until I did the following: const SwapWidget = dynamic( I tried the above with what @misha256 mentioned but it threw an exception |
Following this advice in the
|
info - Collecting page data ...Error: Cannot find module '/Users/.../node_modules/@uniswap/conedison/dist/provider/signing'
at createEsmNotFoundErr (node:internal/modules/cjs/loader:1096:15)
at finalizeEsmResolution (node:internal/modules/cjs/loader:1089:15)
at resolveExports (node:internal/modules/cjs/loader:565:14)
at Module._findPath (node:internal/modules/cjs/loader:634:31)
at Module._resolveFilename (node:internal/modules/cjs/loader:1061:27)
at mod._resolveFilename (/Users/.../node_modules/next/dist/build/webpack/require-hook.js:23:32)
at Module._load (node:internal/modules/cjs/loader:920:27)
at Module.require (node:internal/modules/cjs/loader:1141:19)
at require (node:internal/modules/cjs/helpers:110:18)
at Object.<anonymous> (/Users/.../node_modules/@uniswap/widgets/dist/cjs/index-4f48ae8b.cjs:47:15) {
code: 'MODULE_NOT_FOUND',
path: '/Users/.../node_modules/@uniswap/conedison/package.json'
}
> Build error occurred
Error: Failed to collect page data for /
at /Users/.../node_modules/next/dist/build/utils.js:963:15 {
type: 'Error'
} widget version: 2.51.2 |
same error here |
Related issue #580 |
Bug Description
Whenever I try to start or build my app, the following error is raised:
Steps to Reproduce
@uniswap/widgets
version2.25.0
or higherExpected Behavior
The app should not throw an error.
Temporary Solution
Downgrading to version
2.24.0
solves this issue.The text was updated successfully, but these errors were encountered: