Skip to content

After installing slither the command "slither ." doesn't run and giving errors #2028

Closed Answered by elopez
roudra323 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, and thanks for the question! crytic-compile expects hardhat projects to have a hardhat.config.js or hardhat.config.ts config file, but you have a different extension, hardhat.config.cjs, which appears to have been added recently to hardhat. I'll create an issue to track this in crytic-compile, but in the meantime you can use slither . --compile-force-framework hardhat to force the use of hardhat.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@roudra323
Comment options

Answer selected by roudra323
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants