Closed sponsfreixes closed 3 years ago
@sponsfreixes Give a minute to update it. There are a few changes.
@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
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
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.
All tests successfully passed, thanks! Closing issue.
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! 😄
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:
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.