Skip to content
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

[@rollup/plugin-node-resolve] Allow fallbacks for dependencies with incorrect exports field on package.json #1705

Open
tornadocontrib opened this issue Apr 15, 2024 · 0 comments

Comments

@tornadocontrib
Copy link

Either the resolve plugin fails to resolve the dependencies using exports field it should be able to fallback to main or module field

See #1704 for my potential fix

Should address the following error

(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\eddsa.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\poseidon_opt.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\mimc7.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\babyjub.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\evmasm.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\mimcsponge.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\poseidon_wasm.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\pedersen_hash.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\poseidon_gencontract.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\smt.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\poseidon_reference.js using exports defined in node_modules\ffjavascript\package.json.
(!) [plugin node-resolve] Could not resolve import "ffjavascript" in node_modules\circomlibjs\src\smt_hashes_poseidon.js using exports defined in node_modules\ffjavascript\package.json.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant