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

chore(compiler): Remove wasm option from noir compiler #1628

Merged
merged 1 commit into from
Aug 18, 2023

Conversation

spalladino
Copy link
Collaborator

@spalladino spalladino commented Aug 17, 2023

Issue #1597 was preventing users from installing the Aztec CLI via npm.

Releasing a new version of noir_wasm and noir-source-resolver didn't fix the issue unfortunately, and further tweaking noir-source-resolver so it's loaded properly leads to errors due since the resolver is a global object but it's treated as different objects when loaded as commonjs or esm. So the noir-compiler here is properly configuring the resolver in esm-land, but noir_wasm loads it via commonjs and fails. To make things worse, jest seems to be complaining about misconfigured esm modules here.

Given that noir_wasm is not kept up-to-date atm and is not the recommended way to compile noir contracts, I decided to time out and remove it altogether for now. I'm creating a new issue to revisit this in the future.

Fixes #1597

@socket-security
Copy link

Removed dependencies detected. Learn more about Socket for GitHub ↗︎

🚮 Removed packages: @noir-lang/noir-source-resolver@1.1.1, @noir-lang/noir_wasm@0.5.1-9740f54

@spalladino spalladino merged commit c552322 into master Aug 18, 2023
@spalladino spalladino deleted the palla/remove-wasm-compile branch August 18, 2023 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

CLI beta38 errors with "Unexpected token 'export'" when installed via npm
2 participants