-
Notifications
You must be signed in to change notification settings - Fork 42
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
createKeccakHash is not a function #560
Comments
@Digtyarenk0 it seems there is some problem with other dependencies |
@evgenynacu Here is my yarn.lock file |
@ex1st0r could you pls suggest what can go wrong here? |
Looks like you have some troubles with "keccak" package. |
"keccak" is not installed directly in the project (package.json) |
@ex1st0r keccak has 3.0.4 version installed Any other ideas? |
@Digtyarenk0 here's my yarn.lock from test project |
I didn't notice any anomalies in your package. As you can see in the error, it comes from @rarible/protocol-ethereum-sdk and goes to ethereum-cryptography. Which is version 0.1.3. This ethereum-cryptography contains keccak version 3.0.0.
As far as I understand, it imports keccak from the modules of my project, where keccak 3.0.4 is located. |
I see few problems here:
|
And what is resolve mjs loader that you use? Seems also like a cause |
I tried installing keccak directly and switching moduleResolution in the typescript config.
|
I also tried changing the config but it didn't work. Maybe there are some ideas? |
@Digtyarenk0 one more idea:
Let's see how it's going to work.. |
@vanya2h
|
Also, when installing dependencies yarn install, there are these warnings:
Why can't they influence? |
Describe the bug
When creating an sdk instance I get an error inside
@rarible/protocol-ethereum-sdk/build/config/mainnet.js
Error:
What causes the error:
To Reproduce
Installed packages
Dependencies:
Additional context
Add any other context about the problem here.
npm list @babel/core
= 7.22I also use react-app-rewired
And here are my webpack loaders
The text was updated successfully, but these errors were encountered: