-
Notifications
You must be signed in to change notification settings - Fork 2.3k
truffle test: Error: Cannot find module 'babel-runtime/core-js/object/entries' #5074
Comments
Having the same error when using the |
This is due to the latest update - https://www.npmjs.com/package/truffle is there a way to revert back to old version :) A |
Me too. It seems to be wrong linking with package babel runtime. |
same problem |
After a bit of continued testing it seems like you'll want to use truffle v5.1.39 as I was able to get that version to work, so you'll want to do: |
Nope, that version didn't work too. |
Thanks for raising this @dibi91 ! I've confirmed the behavior on Ubuntu (20.04)/Truffle v5.5.12. We recently updated a dependency that should fix this in the next release. See screencast. $ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.4 LTS
Release: 20.04
Codename: focal |
It worked! |
OK, can people try this again with Truffle 5.5.13? Thanks! |
With 5.5.13 it works for me ! |
@dibi91 can you confirm Truffle v5.5.13 resolves the issue? |
Yes, it's working perfectly! Thank you! |
Issue
truffle test
command exceptionSteps to Reproduce
Create a simple truffle project and launch test:
truffle init
truffle create contract TestBabelRuntimeException
truffle create test TestBabelRuntimeException
truffle test
Expected Behavior
Tests should be executed.
Actual Results
Test command return an exception:
Error: Cannot find module 'babel-runtime/core-js/object/entries
Environment
truffle version
): 5.5.12node --version
): 16.15.0npm --version
): 8.5.5Additional infos
test command work as expected with 4.1.17 version, tried also v5.4.33 and got error too.
The text was updated successfully, but these errors were encountered: