-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
When installing v0.2.43
, I ran into a problem when building my project using pnpm
:
Import trace for requested module:
../../node_modules/.pnpm/permissionless@0.2.43_viem@2.21.22_bufferutil@4.0.8_typescript@5.7.3_utf-8-validate@5.0.10_/node_modules/permissionless/_esm/accounts/index.js
../../node_modules/.pnpm/@fourt+sdk@1.1.3_@babel+core@7.23.3_@babel+preset-env@7.26.0_@babel+core@7.23.3__@types_424d5a67b0e25619433d3b7545479202/node_modules/@fourt/sdk/dist/index.js
./providers/UserProvider/index.tsx
./app/layout.tsx
../../node_modules/.pnpm/permissionless@0.2.43_viem@2.21.22_bufferutil@4.0.8_typescript@5.7.3_utf-8-validate@5.0.10_/node_modules/permissionless/_esm/accounts/kernel/utils/signMessage.js
Module not found: Can't resolve 'ox'
Then, I suspect the problem lies in considering the ox
as an optional peer dependency, which is why it is not being installed. Can anyone explain to me why ox
is an optional peer dependency?
permissionless.js/packages/permissionless/package.json
Lines 97 to 101 in 4287124
"peerDependenciesMeta": { | |
"ox": { | |
"optional": true | |
} | |
} |
I resolved this issue by installing the ox
package in version 0.6.7
in my application, and the build started working again.
canufeel
Metadata
Metadata
Assignees
Labels
No labels