Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit breaks webpack from bundling code #211

@sacdallago

Description

@sacdallago

Hi!

First off: thanks for the effort. I make extensive use of your code in my application and I find it great!

Now back to business. I get the following error from webpack when bundling your tool with the rest of my application:

   [7] ../webcola/WebCola/src/rectangle.js 18.7 kB {0} [built]
  [11] ../webcola/WebCola/src/layout.js 21.8 kB {0} [built]
  [12] ../webcola/WebCola/src/shortestpaths.js 4.16 kB {0} [built]
  [14] ../cytoscape/src/thread.js 12.3 kB {0} [built]
  [30] ../cytoscape-cola/cytoscape-cola.js 17.3 kB {0} [built]
  [31] ../cytoscape/src/index.js 1.25 kB {0} [built]
  [32] ../everpolate/lib/everpolate.js 250 bytes {0} [built]
  [33] ../webcola/WebCola/index.js 741 bytes {0} [built]
 [123] ../everpolate/lib/linear.js 1.37 kB {0} [built]
 [124] ../everpolate/lib/linearRegression.js 1.28 kB {0} [built]
 [125] ../everpolate/lib/polynomial.js 1.68 kB {0} [built]
 [126] ../everpolate/lib/step.js 717 bytes {0} [built]
 [131] ../webcola/WebCola/src/adaptor.js 1.43 kB {0} [built]
 [132] ../webcola/WebCola/src/d3adaptor.js 470 bytes {0} [built]
 [139] ./lib/index.js 11.6 kB {0} [built]
    + 125 hidden modules

ERROR in ../webcola/WebCola/index.js
Module not found: Error: Can't resolve './src/batch' in '/usr/src/app/node_modules/webcola/WebCola'
 @ ../webcola/WebCola/index.js 20:9-31
 @ ./lib/index.js

This line has been added with the last commits (specifically I'm looking at the diff of c43ce6c and c43ce6c#diff-1a19b27b73aa494925bc33270c6e865e ) and this is the line that introduces the error.

As webpack highlights, there is a missing dependency, which at a first glimpse is due to the typescript file not being transcribed in common js? (I might be totally wrong here :) )

I'm sorry I cannot help further :P Hope you can figure the issue out anyway

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions