hardhat
hardhat copied to clipboard
v2.11.1-MODULE_NOT_FOUND
v2.11.1 - Solidity-Analyzer (Module Not Found)
Win 10 - Node v18.9.0
Issue: '@nomicfoundation\solidity-analyzer-win32-x64-msvc' Module_Not_Found error present upon a clean install of the hardhat v2.11.1 even though the module is present within node_modules (seems to be a compiling issue)
Workaround: Install hardhat v2.10.2 and compile using the previous version first, then proceed to update to v2.11.1 for testing
$ npm i [email protected] $ npx hardhat compile $ npm i [email protected] $ npx hardhat test
v2.11.1 ERROR:
After v2.10.2 Workaround:
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: 173456bf-709d-4207-80df-7712e0190169
Hey, can you please try reinstalling all your packages (deleting your package-lock.json
and re-running npm i
), and then sharing the output of npm ls -a
?
I believe this bug has been fixed and that you have an older version of @nomicfoundation/solidity-analyzer
.
Hi. @alcuadrado.
This is fairly a great repo. I appreciate your effort and impressed by your skill.
And I've got the same error with @Track7Dev.
And here is output of
npm ls -a
about @nomicfoundation/solidity-analyzer
.
I'd like you to help me out.
I identified the root of the issue, and I'm working on a workaround. You can read more details about it here.
I'm working on a workaround, which will hopefully be shipped tomorrow. I'll keep you posted.
PS: I think I may have confused your issue for another one. Our publish of version 0.0.4 of the library failed. I'm running it again now. You should be able to reinstall it in a few minutes, which should work.
@Arashi-H @Track7Dev
Can you delete your package-lock.json
/yarn.lock
, reinstall, and try again?
Thanks for your response.
I've started a new project with hardhat from scratch.
I initialized npm, installed hardhat, initialized hardhat framework and still have solidity-analyzer 0.0.3 not 0.0.4.
This is killing my time. Please help me.
Can you please try installing [email protected]
? This one should fix it. If you confirm that it works I'll release it as final ASAP. @Arashi-H
I was facing the same issue. I installed [email protected]
and now it's fixed!
Thanks! I'll release it as stable today.
@alcuadrado. Sorry for late answer. Now it's fixed and thank you for your effort. I will keep in touch with you.
@alcuadrado Thanks! when will this be released as stable?