-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sylvester cannot be used with browserify #4
Comments
Looks like the suspect portion might be
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.:
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 |
Possible workaround: substack states that a solution to the halting problem would enable conditional requires. Looks like there's a node module for that 😉 |
Blarf! I'll stick to |
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: