Closed nchabalier closed 6 years ago
Hi @nichabalie,
Indeed the dist folder is currently used only into the browser (build with webpack). Like that, you can't use it in nodejs with a require.
If you want an easy way to work with dataframe-js (with its own dependencies), you can use npm install dataframe-js
or even yarn install dataframe-js
. It will install the library correctly. Then you can use the library with require('dataframe-js').DataFrame
;
Thank you @Gmousse for your response, that resolved my problem.
I don't know if it's normal but to make it works I had to use the command npm install babel-runtime
too.
Hi @nichabalie, I have created #63 for your issue with babel-runtime. Thank you for using dataframe-js :D
Hello, I wan't to use the file dataframe.js in the dist folder but I have the following error:
TypeError: DataFrame is not a constructor
My code is the following
(I have no problem if I replace the first line by this one:
DataFrame = require('./dataframe-js/lib').DataFrame;
but I need to install babel-runtime with npm.)Do you know what is the problem ? Thanks