node-sylvester icon indicating copy to clipboard operation
node-sylvester copied to clipboard

TypeError: Line.create is not a function

Open hakatashi opened this issue 7 years ago • 0 comments

I'm getting this error when I use plane.intersectionWith.

repro:

const {Plane} = require('sylvester');

const plane1 = Plane.create([0, 0, 0], [0, 1, 0]);
const plane2 = Plane.create([0, 0, 0], [0, 0, 1]);
plane1.intersectionWith(plane2);
$ npm ls sylvester
[email protected] C:\Users\denjj\Documents\GitHub\smart-cube-timer
`-- [email protected]

$ node --version
v10.3.0

$ node temp.js
C:\Users\denjj\Documents\GitHub\smart-cube-timer\node_modules\sylvester\lib\node-sylvester\plane.js:126
      return Line.create(anchor, direction);
                  ^

TypeError: Line.create is not a function
    at Plane.intersectionWith (C:\Users\denjj\Documents\GitHub\smart-cube-timer\node_modules\sylvester\lib\node-sylvester\plane.js:126:19)
    at Object.<anonymous> (C:\Users\denjj\Documents\GitHub\smart-cube-timer\temp.js:5:8)
    at Module._compile (internal/modules/cjs/loader.js:702:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:713:10)
    at Module.load (internal/modules/cjs/loader.js:612:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:551:12)
    at Function.Module._load (internal/modules/cjs/loader.js:543:3)
    at Function.Module.runMain (internal/modules/cjs/loader.js:744:10)
    at startup (internal/bootstrap/node.js:238:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:572:3)

hakatashi avatar Sep 11 '18 16:09 hakatashi