Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

safe-buffer not declared in dependencies throws error #806

Closed
mrossesf opened this issue Feb 25, 2021 · 1 comment
Closed

safe-buffer not declared in dependencies throws error #806

mrossesf opened this issue Feb 25, 2021 · 1 comment

Comments

@mrossesf
Copy link

When using Yarn v2 (berry) to run yarn test in the community.optimism.io/tutorial, I got the error shown below. I tried to manually add the safe-buffer dependency to the ../node_modules/ganache-core/package.json file, but still got the exact same error.

Error: ganache-core tried to access safe-buffer, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.

Required package: safe-buffer (via "safe-buffer")
Required by: ganache-core@npm:2.13.2 (via /Users/martinrosse/optimism-tutorial/.yarn/unplugged/ganache-core-npm-2.13.2-bd779722b4/node_modules/ganache-core/build/)

@mrossesf
Copy link
Author

mrossesf commented Mar 4, 2021

The issue I encountered was solved by switching to Yarn v1.x. I'm not aware of an issue that is specific to ganache-core, so I am closing this.

@mrossesf mrossesf closed this as completed Mar 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant