You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Browserify finds and acts on these requires regardless of surrounding logic, right? (In other words, no conditional requires)
Perhaps this needs to be removed and replaced with dependency injection? I.e.:
require('sylvester')( require('lapack') )
or
require('sylvester')()
That's kind of a major breaking change though. Disclaimer: just a guess on my part. I haven't tried any of this. Is there an alternate approach to dependency injection that wouldn't break plain require('sylvester')?
Possible workaround: substack states that a solution to the halting problem would enable conditional requires. Looks like there's a node module for that 😉
Browserify emits en error message:
Error: Cannot find module 'lapack' from '<path>/node_modules/sylvester/lib/node-sylvester'
One way to fix the issue would be to add
lapack
as dependency ofsylvester
. In the meantime, I use browserify's--ignore lapack
option.The text was updated successfully, but these errors were encountered: