Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cannot find babel-runtime library

When I am running yarn test:watch, I am getting this error.

    Cannot find module 'babel-runtime/helpers/toConsumableArray' from 'node_modules/pandas-js/dist/core/series.js'

Require stack:
  node_modules/pandas-js/dist/core/series.js
  node_modules/pandas-js/dist/core/index.js
  node_modules/pandas-js/dist/index.js

  at Resolver.resolveModule (node_modules/jest-resolve/build/index.js:306:11)
  at Object.<anonymous> (node_modules/pandas-js/dist/core/series.js:8:27)

I tired

npm install --save-exact @babel/[email protected]

and then deleted node-modules folder and package-lock.json file and tried npm install again

That did not solve the issue too. Can anyone help me in this please.

This is the version of pandas-js library

"pandas-js": "^0.2.4",

in my package.json

like image 209
Srinivas Avatar asked May 23 '26 06:05

Srinivas


1 Answers

it works after I installed babel-cli, a lot of people have said this works for them @babel/[email protected], but for me babel-cli helped.

like image 94
Srinivas Avatar answered May 24 '26 21:05

Srinivas