Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,13 +102,16 @@ const nextConfig = {
layers: true,
};

// TODO: Remove when @hyperlane-xyz/core fixes ethers v5/v6 compat in tron typechain.
// core's tron typechain does `import { utils } from 'ethers'` (v5 API) which
// flakily fails during barrel optimization with webpackBuildWorker enabled.
// See: https://github.com/hyperlane-xyz/hyperlane-warp-ui-template/pull/973
// TODO: Remove when @hyperlane-xyz/core fixes ethers v5/v6 compat in typechain.
// core@11's typechain does `import { utils } from 'ethers'` (v5 API) which fails
// during barrel optimization with webpackBuildWorker. Stub out the entire typechain
// barrel — this app doesn't use contract factories directly.
// See: https://github.com/hyperlane-xyz/hyperlane-warp-ui-template/pull/976
config.resolve.alias = {
...config.resolve.alias,
'@hyperlane-xyz/core/dist/typechain': false,
'@hyperlane-xyz/core/dist/tron': false,
'@hyperlane-xyz/core/dist/buildArtifact.js': false,
};

if (isServer) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@
"@emotion/styled": "^11.13.0",
"@headlessui/react": "^2.2.0",
"@hyperlane-xyz/registry": "24.0.0",
"@hyperlane-xyz/sdk": "25.3.2",
"@hyperlane-xyz/utils": "25.3.2",
"@hyperlane-xyz/widgets": "25.3.2",
"@hyperlane-xyz/sdk": "25.4.0-beta.5122d0977e44c576088b40f9f119d44381857cdc",
"@hyperlane-xyz/utils": "25.4.0-beta.5122d0977e44c576088b40f9f119d44381857cdc",
"@hyperlane-xyz/widgets": "25.4.0-beta.5122d0977e44c576088b40f9f119d44381857cdc",
"@interchain-ui/react": "^1.23.28",
"@intercom/messenger-js-sdk": "^0.0.18",
"@metamask/post-message-stream": "6.1.2",
Expand Down
Loading
Loading