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

fix(node-resolve): Add exception to allow fallbacks when resolving exports fail #1704

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tornadocontrib
Copy link

Allow exceptions to allow fallbacks for "exports" defined dependencies to allow them bundled.

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.

@tornadocontrib tornadocontrib changed the title Add exception to allow fallbacks when resolving exports fail fix(node-resolve): Add exception to allow fallbacks when resolving exports fail Apr 15, 2024
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

Successfully merging this pull request may close these issues.

None yet

1 participant