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
While digging into the problem, I saw that in your highs-addon/package.json, you have "main": "index.cjs". I can see that file on the GitHub repository, but it does not appear in the highs-addon node_modules files (installed as dependency of highs-solver).
If I copy the content of the index.cjs file of GitHub and create it by myself, the problem is gone.
The thing is, why the index.cjs file is not present in the node_modules/highs-addon files at install ?
I tried to play with CommonJS / ESM configuration of my own package.json / tsconfig.json thinking it could be the problem (because cjs file is CommonJS), ended up by using "type": "module" and "module": "esnext". I don't know if this information is useful.
Thanks in advance for your help !
The text was updated successfully, but these errors were encountered:
Hello, first, thanks for the library, got nice results from it !
We just met a problem during the installation of highs-solver.
In the
highs-solver/lib/index.js
, there is an import ofhighs-addon
but this is error is thrown :Cannot find package '/usr/app/node_modules/highs-addon/package.json
While digging into the problem, I saw that in your
highs-addon/package.json
, you have"main": "index.cjs"
. I can see that file on the GitHub repository, but it does not appear in the highs-addon node_modules files (installed as dependency of highs-solver).If I copy the content of the
index.cjs
file of GitHub and create it by myself, the problem is gone.The thing is, why the
index.cjs
file is not present in thenode_modules/highs-addon
files at install ?I tried to play with CommonJS / ESM configuration of my own package.json / tsconfig.json thinking it could be the problem (because cjs file is CommonJS), ended up by using
"type": "module"
and"module": "esnext"
. I don't know if this information is useful.Thanks in advance for your help !
The text was updated successfully, but these errors were encountered: