hardhat icon indicating copy to clipboard operation
hardhat copied to clipboard

v2.11.1-MODULE_NOT_FOUND

Open Track7Dev opened this issue 2 years ago • 12 comments

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:

hardhat_2 11 1_issue

After v2.10.2 Workaround:

hardhat_2 11 1_workaround

Track7Dev avatar Sep 14 '22 03:09 Track7Dev

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

github-actions[bot] avatar Sep 14 '22 03:09 github-actions[bot]

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.

alcuadrado avatar Sep 14 '22 13:09 alcuadrado

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. image And here is output of npm ls -a about @nomicfoundation/solidity-analyzer. image I'd like you to help me out.

Arashi-H avatar Sep 15 '22 17:09 Arashi-H

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.

alcuadrado avatar Sep 15 '22 21:09 alcuadrado

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

alcuadrado avatar Sep 15 '22 21:09 alcuadrado

Can you delete your package-lock.json/yarn.lock, reinstall, and try again?

alcuadrado avatar Sep 15 '22 22:09 alcuadrado

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. image This is killing my time. Please help me.

Arashi-H avatar Sep 16 '22 00:09 Arashi-H

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

alcuadrado avatar Sep 16 '22 12:09 alcuadrado

I was facing the same issue. I installed [email protected] and now it's fixed!

dilip-solulab avatar Sep 16 '22 14:09 dilip-solulab

Thanks! I'll release it as stable today.

alcuadrado avatar Sep 16 '22 17:09 alcuadrado

@alcuadrado. Sorry for late answer. Now it's fixed and thank you for your effort. I will keep in touch with you.

Arashi-H avatar Sep 17 '22 09:09 Arashi-H

@alcuadrado Thanks! when will this be released as stable?

fullkomnun avatar Sep 20 '22 15:09 fullkomnun