You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 21e83a0
Browse filesBrowse the repository at this point in the historyBrowse files
fix(hardhat-viem): add resolution-mode to viem type imports
A fresh install resolves viem to a release that ships a nested
_types/package.json with type: module, which makes TypeScript treat
viem's type declarations as belonging to an ES module. Under this
package's CommonJS/Node16 setup, every type-only import from viem
then needs an explicit resolution-mode import attribute, or tsc
fails with TS1541/TS1542.
Add the attribute to the affected type-only imports and type
queries in src and test. No dependency version changes, so this
stays compatible with both the currently pinned viem and future
releases.
0 commit comments