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

The "npx hardhat compile" is failing to compile solidity file #3144

Closed
smartcondev opened this issue Sep 6, 2022 · 6 comments
Closed

The "npx hardhat compile" is failing to compile solidity file #3144

smartcondev opened this issue Sep 6, 2022 · 6 comments
Assignees

Comments

@smartcondev
Copy link

Whenever I am trying to start a new project and trying to compile a new solidity file, it is showing the same error again and again.
what I tried to fix it:
-I re-install the node
--Many times I started a new project

Here is error which I am getting:

Screenshot 2022-09-06 122446

@github-actions
Copy link
Contributor

github-actions bot commented Sep 6, 2022

This issue is also being tracked on Linear.

We use Linear to manage our development process, but we keep the conversations on Github.

LINEAR-ID: 4d3fa2e7-ce23-4f9d-b47a-fcc3a54d1f14

@alcuadrado
Copy link
Member

alcuadrado commented Sep 6, 2022

Hey, thanks for opening the issue.

Can you give us more information about your system?
Which version of node are you running?
Which version of windows are you using?
Which terminal are you using?
Do you use WSL? WSL2?
Is your computer x86 (32 or 64bits?)? Is it ARM?
Does the file that ends with .node in the error message exist in your filesystem?

Thanks!

@smartcondev
Copy link
Author

I am using windows 11 and I have v16.17.0 of node and my computer is 64bits.Other info about my system is given below:

Processor Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz 1.80 GHz
Installed RAM 8.00 GB (7.88 GB usable)
Device ID F5D09154-B2C1-47B7-B54B-6DB87AEF1DB7
Product ID 00327-35827-84369-AAOEM
System type 64-bit operating system, x64-based processor
Pen and touch No pen or touch input is available for this display

I am not using WSL and that .node file is there whenever I installed the hardhat but it is is in corrupted form.

@alcuadrado
Copy link
Member

alcuadrado commented Sep 7, 2022

I believe this is what's happening: parcel-bundler/parcel#7104 (comment)

Can you try the solution described there and tell us if it worked?

You can learn more about this here: https://georgik.rocks/how-to-statically-link-rust-application-for-windows/

@smartcondev
Copy link
Author

Great! it worked for me.
Thank you so much for all your help.
Now you can close this issue.

@alcuadrado
Copy link
Member

Thanks for testing it! Now that we understand what's going on, we are fixing it so that a separate installation is not needed.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants