javascriptdata / danfojs

Danfo.js is an open source, JavaScript library providing high performance, intuitive, and easy to use data structures for manipulating and processing structured data.
https://danfo.jsdata.org/
MIT License
4.78k stars 209 forks source link

Are the instructions for contributing correct? (missing babel) #173

Closed sponsfreixes closed 3 years ago

sponsfreixes commented 3 years ago

I am trying to contribute to the project, but before doing my changes I want to confirm that tests are successfully running. I'm running into errors when following https://danfo.jsdata.org/contributing-guide.

On the danfojs root:

$ npm --version
6.14.12

$ npm install
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.1 (node_modules/mocha/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

removed 319 packages in 24.14s
found 0 vulnerabilities

$ npm run test

> danfo@ test /path/to/danfojs
> cd danfojs-node && yarn test && cd ../danfojs-browser && yarn test

yarn run v1.22.10
$ yarn run build && nyc mocha --require @babel/register tests/*
$ babel ./src -d ./dist --no-comments
/bin/sh: 1: babel: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! danfo@ test: `cd danfojs-node && yarn test && cd ../danfojs-browser && yarn test`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the danfo@ test script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /myhome/.npm/_logs/2021-04-21T03_46_31_081Z-debug.log

If I manually install babel-cli I keep getting other errors, so before going into a rabbit hole I want to confirm if I the Contributing guide is correct and I am doing something wrong, or there are steps missing.

risenW commented 3 years ago

@sponsfreixes Give a minute to update it. There are a few changes.

risenW commented 3 years ago

@sponsfreixes I just updated the contributing guide. Let me know if it's easier to follow. See https://danfo.jsdata.org/contributing-guide#tl-dr for a quick setup guide

sponsfreixes commented 3 years ago

Ok, I started from scratch and was able to run yarn (berry) on the danfojs-node directory, and then yarn test ran the tests successfully.

On the danfojs-browse directory yarn-test is failing though (to clarify, I also ran yarn in there and I'm using the latest master):

$ yarn test
assets by status 2.11 MiB [cached] 1 asset
orphan modules 5.27 MiB [orphan] 2030 modules
runtime modules 1.37 KiB 8 modules
cacheable modules 6.77 MiB
  modules by path ./.yarn/cache/lodash-npm-4.17.20-c0db62021c-c62101d250.zip/node_modules/lodash/*.js 136 KiB 185 modules
  modules by path ./.yarn/cache/table-npm-5.4.6-190b118384-38877a196c.zip/node_modules/table/dist/*.js 61.2 KiB 24 modules
  modules by path ./src/ 282 KiB
    modules by path ./src/core/*.js 209 KiB 9 modules
    3 modules
  modules by path ./.yarn/cache/mathjs-npm-7.5.1-93413fa84a-36d523782e.zip/node_modules/mathjs/es/ 1.1 MiB 9 modules
  modules by path ./.yarn/cache/seedrandom-npm-2.4.3-3bcf237980-13c78c913a.zip/node_modules/seedrandom/ 26.3 KiB
    modules by path ./.yarn/cache/seedrandom-npm-2.4.3-3bcf237980-13c78c913a.zip/node_modules/seedrandom/lib/*.js 16 KiB 6 modules
    modules by path ./.yarn/cache/seedrandom-npm-2.4.3-3bcf237980-13c78c913a.zip/node_modules/seedrandom/*.js 10.2 KiB 2 modules
  modules by path ./.yarn/cache/xlsx-npm-0.16.9-b220e7d8ce-f172dce6f0.zip/node_modules/xlsx/ 1.42 MiB 3 modules
  modules by path ./.yarn/cache/color-convert-npm-1.9.3-1fe690075e-5f244daa3d.zip/node_modules/color-convert/*.js 20.3 KiB 3 modules

ERROR in ./.yarn/$$virtual/@tensorflow-tfjs-data-virtual-7d0835f300/0/cache/@tensorflow-tfjs-data-npm-3.3.0-398b1093c8-4bf8aa6b5c.zip/node_modules/@tensorflow/tfjs-data/dist/dataset.js 19:0-41
Module not found: Error: @tensorflow/tfjs-data tried to access seedrandom (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.

Required package: seedrandom (via "seedrandom")
Required by: @tensorflow/tfjs-data@virtual:cf50664bb60daa161fa0d74b1c649847c5c294edd835fd44772a265e5d4c6542a9ec27f072d23efffbb3cf13433dfeed3807c652df5e521b442e21c86ac83fde#npm:3.3.0 (via /mnt/c/Users/sachi/repos/danfojs/danfojs-browser/.yarn/$$virtual/@tensorflow-tfjs-data-virtual-7d0835f300/0/cache/@tensorflow-tfjs-data-npm-3.3.0-398b1093c8-4bf8aa6b5c.zip/node_modules/@tensorflow/tfjs-data/dist/)
Ancestor breaking the chain: @tensorflow/tfjs@npm:3.3.0

 @ ./.yarn/$$virtual/@tensorflow-tfjs-data-virtual-7d0835f300/0/cache/@tensorflow-tfjs-data-npm-3.3.0-398b1093c8-4bf8aa6b5c.zip/node_modules/@tensorflow/tfjs-data/dist/index.js 17:0-48 17:0-48 17:0-48 17:0-48
 @ ./.yarn/cache/@tensorflow-tfjs-npm-3.3.0-cf50664bb6-bd4f60b9a7.zip/node_modules/@tensorflow/tfjs/dist/index.js 26:0-46 27:0-16 35:0-53 43:17-29
 @ ./src/index.js

ERROR in ./.yarn/$$virtual/@tensorflow-tfjs-data-virtual-7d0835f300/0/cache/@tensorflow-tfjs-data-npm-3.3.0-398b1093c8-4bf8aa6b5c.zip/node_modules/@tensorflow/tfjs-data/dist/iterators/lazy_iterator.js 19:0-41
Module not found: Error: @tensorflow/tfjs-data tried to access seedrandom (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.

Required package: seedrandom (via "seedrandom")
Required by: @tensorflow/tfjs-data@virtual:cf50664bb60daa161fa0d74b1c649847c5c294edd835fd44772a265e5d4c6542a9ec27f072d23efffbb3cf13433dfeed3807c652df5e521b442e21c86ac83fde#npm:3.3.0 (via /mnt/c/Users/sachi/repos/danfojs/danfojs-browser/.yarn/$$virtual/@tensorflow-tfjs-data-virtual-7d0835f300/0/cache/@tensorflow-tfjs-data-npm-3.3.0-398b1093c8-4bf8aa6b5c.zip/node_modules/@tensorflow/tfjs-data/dist/iterators/)
Ancestor breaking the chain: @tensorflow/tfjs@npm:3.3.0

 @ ./.yarn/$$virtual/@tensorflow-tfjs-data-virtual-7d0835f300/0/cache/@tensorflow-tfjs-data-npm-3.3.0-398b1093c8-4bf8aa6b5c.zip/node_modules/@tensorflow/tfjs-data/dist/readers.js 20:0-65 130:17-37 196:15-35
 @ ./.yarn/$$virtual/@tensorflow-tfjs-data-virtual-7d0835f300/0/cache/@tensorflow-tfjs-data-npm-3.3.0-398b1093c8-4bf8aa6b5c.zip/node_modules/@tensorflow/tfjs-data/dist/index.js 20:0-69 20:0-69 20:0-69 20:0-69 20:0-69 20:0-69
 @ ./.yarn/cache/@tensorflow-tfjs-npm-3.3.0-cf50664bb6-bd4f60b9a7.zip/node_modules/@tensorflow/tfjs/dist/index.js 26:0-46 27:0-16 35:0-53 43:17-29
 @ ./src/index.js

ERROR in ./src/config/config.js 1:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/config'
 @ ./src/index.js 12:0-42 12:0-42

ERROR in ./src/config/config.js 2:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/config'
 @ ./src/index.js 12:0-42 12:0-42

ERROR in ./src/core/concat.js 1:0-52
Module not found: Error: Can't resolve '@babel/runtime/helpers/typeof' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 7:0-39 7:0-39

ERROR in ./src/core/concat.js 2:0-74
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 7:0-39 7:0-39

ERROR in ./src/core/concat.js 3:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 7:0-39 7:0-39

ERROR in ./src/core/date_range.js 1:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 10:0-47 10:0-47

ERROR in ./src/core/date_range.js 2:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 10:0-47 10:0-47

ERROR in ./src/core/frame.js 1:0-74
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 2:0-66
Module not found: Error: Can't resolve '@babel/runtime/helpers/slicedToArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 3:0-61
Module not found: Error: Can't resolve '@babel/runtime/regenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 4:0-72
Module not found: Error: Can't resolve '@babel/runtime/helpers/asyncToGenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 5:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 6:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 7:0-46
Module not found: Error: Can't resolve '@babel/runtime/helpers/get' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 8:0-56
Module not found: Error: Can't resolve '@babel/runtime/helpers/inherits' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 9:0-90
Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/frame.js 10:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/generic.js 1:0-61
Module not found: Error: Can't resolve '@babel/runtime/regenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 1:0-37 13:0-19

ERROR in ./src/core/generic.js 2:0-72
Module not found: Error: Can't resolve '@babel/runtime/helpers/asyncToGenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 1:0-37 13:0-19

ERROR in ./src/core/generic.js 3:0-66
Module not found: Error: Can't resolve '@babel/runtime/helpers/slicedToArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 1:0-37 13:0-19

ERROR in ./src/core/generic.js 4:0-74
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 1:0-37 13:0-19

ERROR in ./src/core/generic.js 5:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 1:0-37 13:0-19

ERROR in ./src/core/generic.js 6:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 1:0-37 13:0-19

ERROR in ./src/core/get_dummies.js 1:0-74
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 11:0-49 11:0-49

ERROR in ./src/core/get_dummies.js 2:0-66
Module not found: Error: Can't resolve '@babel/runtime/helpers/slicedToArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 11:0-49 11:0-49

ERROR in ./src/core/groupby.js 1:0-74
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/core/frame.js 33:0-36 1491:23-30
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/groupby.js 2:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/core/frame.js 33:0-36 1491:23-30
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/groupby.js 3:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/core/frame.js 33:0-36 1491:23-30
 @ ./src/index.js 3:0-41 3:0-41

ERROR in ./src/core/merge.js 1:0-74
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 6:0-37 6:0-37

ERROR in ./src/core/merge.js 2:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 6:0-37 6:0-37

ERROR in ./src/core/merge.js 3:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 6:0-37 6:0-37

ERROR in ./src/core/series.js 1:0-66
Module not found: Error: Can't resolve '@babel/runtime/helpers/slicedToArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 2:0-74
Module not found: Error: Can't resolve '@babel/runtime/helpers/toConsumableArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 3:0-61
Module not found: Error: Can't resolve '@babel/runtime/regenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 4:0-72
Module not found: Error: Can't resolve '@babel/runtime/helpers/asyncToGenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 5:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 6:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 7:0-56
Module not found: Error: Can't resolve '@babel/runtime/helpers/inherits' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 8:0-90
Module not found: Error: Can't resolve '@babel/runtime/helpers/possibleConstructorReturn' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/series.js 9:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/getPrototypeOf' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/core/strings.js 1:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 14:0-37 14:0-37

ERROR in ./src/core/strings.js 2:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 14:0-37 14:0-37

ERROR in ./src/core/timeseries.js 1:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 4:0-48 4:0-48

ERROR in ./src/core/timeseries.js 2:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 4:0-48 4:0-48

ERROR in ./src/core/utils.js 1:0-66
Module not found: Error: Can't resolve '@babel/runtime/helpers/slicedToArray' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 15:0-37 15:0-37

ERROR in ./src/core/utils.js 2:0-52
Module not found: Error: Can't resolve '@babel/runtime/helpers/typeof' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 15:0-37 15:0-37

ERROR in ./src/core/utils.js 3:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 15:0-37 15:0-37

ERROR in ./src/core/utils.js 4:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/core'
 @ ./src/index.js 15:0-37 15:0-37

ERROR in ./src/io/reader.js 1:0-61
Module not found: Error: Can't resolve '@babel/runtime/regenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/io'
 @ ./src/index.js 5:0-62 5:0-62 5:0-62 5:0-62

ERROR in ./src/io/reader.js 2:0-72
Module not found: Error: Can't resolve '@babel/runtime/helpers/asyncToGenerator' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/io'
 @ ./src/index.js 5:0-62 5:0-62 5:0-62 5:0-62

ERROR in ./src/plotting/plot.js 1:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/plotting'
 @ ./src/core/series.js 37:0-40 1470:20-24
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/plotting/plot.js 2:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/plotting'
 @ ./src/core/series.js 37:0-40 1470:20-24
 @ ./src/index.js 2:0-39 2:0-39

ERROR in ./src/preprocessing/encodings.js 1:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/preprocessing'
 @ ./src/index.js 8:0-72 8:0-72 8:0-72

ERROR in ./src/preprocessing/encodings.js 2:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/preprocessing'
 @ ./src/index.js 8:0-72 8:0-72 8:0-72

ERROR in ./src/preprocessing/scalers.js 1:0-68
Module not found: Error: Can't resolve '@babel/runtime/helpers/classCallCheck' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/preprocessing'
 @ ./src/index.js 9:0-71 9:0-71 9:0-71

ERROR in ./src/preprocessing/scalers.js 2:0-62
Module not found: Error: Can't resolve '@babel/runtime/helpers/createClass' in '/mnt/c/Users/sachi/repos/danfojs/danfojs-browser/src/preprocessing'
 @ ./src/index.js 9:0-71 9:0-71 9:0-71

56 errors have detailed information that is not shown.
Use 'stats.errorDetails: true' resp. '--stats-error-details' to show it.

webpack 5.21.2 compiled with 58 errors in 88063 ms
sponsfreixes commented 3 years ago

I looked at the project's CI and I saw that it is running yarn 1.22.10, not yarn 2. That was my mistake.

I need to deal now with installing a headless chrome (I'm working on WSL), I'll do that in a few hours and confirm that everything is fine.

sponsfreixes commented 3 years ago

All tests successfully passed, thanks! Closing issue.

igonro commented 2 years ago

Hi @sponsfreixes, I may have a similar issue with the tests in #396 as I'm also on WSL. Could you take a look? I'm pretty new to node/yarn and I don't understand what is the problem... Thanks! 😄