-
Notifications
You must be signed in to change notification settings - Fork 44
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
Can't resolve nlapack, nblas and util in node_modules #263
Comments
Hey there, can you try installing it with |
Thanks for your rapid reply!!! I use
Then I uninstall it and use |
No problem! I think this issue is related, you could try adding this to your package.json and see if it works: "browser": {
"nblas": false,
"nlapack": false
} |
Error still, sorry. Two more clues:
Actually, I don't understand, so I just followed up the instructions to install util and add a fallback for resolve. Is this related to this issue? |
|
I think it is related to webpack, maybe the browser field can not feed to vectorious?
For |
Ahh I realise I linked to the wrong issue in the previous comment haha. Here is what I meant: webpack/webpack#8826 |
I read the webpack link you provide carefully. As for my understanding, I should add
|
Looked at your project! Apparently webpack > 5 requires some additional config to work with conditional dependencies. Use IgnorePlugin to ignore nblas and nlapack: new IgnorePlugin({ resourceRegExp: /^nblas|nlapack$/ }) The fallback: { "util": false } Finally, remove |
Hi developers,
I try to import vectorious in my typescript project, but when using webpack 5.89 to start a dev server, it told me:
I am sure that I have installed liblapack and nlapack itself, but I still get the problem. How should I fix this problem? The reproduced project is
https://github.com/MolCrafts/molvis
, I just use the template and do not change any configs.Thanks in advance for your help!!!!!
The text was updated successfully, but these errors were encountered: