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

(Continued/Reopened) #8396 'Module not found: Can't resolve 'memcpy'/ 'encoding' in @trezor/connect-web' #8506

Closed
Seranged opened this issue May 17, 2023 · 2 comments
Assignees
Labels
bug Something isn't working as expected

Comments

@Seranged
Copy link

Hi, @mroz22 (and whoever else may be concerned). This is a reopening of an issue from #8396, @mroz22's PR to attempt to fix the issue is here

I just updated the dependencies to "@trezor/connect-web": "^9.0.10", which I think has the bugfix @mroz22 implemented last week, and am still having the issue described above.

Recreated in this branch: https://github.com/Seranged/EVM-FE-Bootstrap/tree/trezor-nextjs-issue-reproduction

Ran rm -rf node_modules
Ran yarn install
Ran yarn dev
Error in the terminal is provided below
Module not found: Can't resolve 'memcpy' in '/EVM-bootstrap/node_modules/bytebuffer/dist'

Import trace for requested module:
./node_modules/bytebuffer/dist/bytebuffer-node.js
./node_modules/@trezor/transport/lib/lowlevel/receive.js
./node_modules/@trezor/transport/lib/bridge/v2.js
./node_modules/@trezor/transport/lib/index.js
./node_modules/@trezor/connect/lib/device/DeviceList.js
./node_modules/@trezor/connect/lib/core/index.js
./node_modules/@trezor/connect/lib/index.js
./node_modules/@trezor/connect-web/lib/iframe/index.js
./node_modules/@trezor/connect-web/lib/index.js
./src/app/layout.tsx

./node_modules/node-fetch/lib/index.js
Module not found: Can't resolve 'encoding' in '/EVM-bootstrap/node_modules/node-fetch/lib'

Import trace for requested module:
./node_modules/node-fetch/lib/index.js
./node_modules/cross-fetch/dist/node-ponyfill.js
./node_modules/@trezor/connect/lib/device/DeviceList.js
./node_modules/@trezor/connect/lib/core/index.js
./node_modules/@trezor/connect/lib/index.js
./node_modules/@trezor/connect-web/lib/iframe/index.js
./node_modules/@trezor/connect-web/lib/index.js
./src/app/layout.tsx
(node:43143) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use node --trace-deprecation ... to show where the warning was created)

@Seranged Seranged added the bug Something isn't working as expected label May 17, 2023
@mroz22 mroz22 self-assigned this May 18, 2023
@mroz22
Copy link
Contributor

mroz22 commented May 24, 2023

@Seranged plesase check it now, 9.0.11 version has been just released

@Seranged
Copy link
Author

Seranged commented May 25, 2023

It seems as though the encoding and memcpy issues have been resolved with Trezor in this release! Ty @mroz22 !

A few other dependencies (walletConnect and WAGMI) (screenshot attached) are also having this issue with encoding, so I will open issues with those guys.

Thank you for the help!

image

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

No branches or pull requests

3 participants