cytoscape / jupyter-cytoscape

Cytoscape.js API support in JS, Python, and R Jupyter kernels
MIT License
10 stars 4 forks source link

Unable use make command #7

Open JeroenSchmidt opened 6 years ago

JeroenSchmidt commented 6 years ago

when I run make within the jupyter-cytoscape directory I get the following stack trace. Any suggestions on how to fix this or if its a bug ?

Invalid configuration object. Webpack has been initialised using a configuration object that does not match the API schema.
 - configuration[0].output.path: The provided value "../cyjs/static" is not an absolute path!
   -> The output directory as **absolute path** (required).
 - configuration[1].module has an unknown property 'loaders'. These properties are valid:
   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
   -> Options affecting the normal modules (`NormalModuleFactory`).
 - configuration[1].output.path: The provided value "../cyjs/static" is not an absolute path!
   -> The output directory as **absolute path** (required).
 - configuration[2].module has an unknown property 'loaders'. These properties are valid:
   object { exprContextCritical?, exprContextRecursive?, exprContextRegExp?, exprContextRequest?, noParse?, rules?, defaultRules?, unknownContextCritical?, unknownContextRecursive?, unknownContextRegExp?, unknownContextRequest?, unsafeCache?, wrappedContextCritical?, wrappedContextRecursive?, wrappedContextRegExp?, strictExportPresence?, strictThisContextOnImports? }
   -> Options affecting the normal modules (`NormalModuleFactory`).
 - configuration[2].output.path: The provided value "./dist/" is not an absolute path!
   -> The output directory as **absolute path** (required).
drmeister commented 6 years ago

I'm also interested in what it would take to get jupyter-cytoscape running again - especially with jupyterlab.

drmeister commented 6 years ago

It turns out to be a simple fix to get the makefile to work.

Change: (cd ./js; webpack --config webpack.config.js) To: (cd ./js; node_modules/.bin/webpack --config webpack.config.js)