On Windows 10, truffle/Assert.sol is not found
See original GitHub issue- I’ve asked for help in the Truffle Gitter before filing this issue.
Issue
On Windows 10, VS Code IDE: when following the PET Store tutorial, I get the following error when writing a test file:
import "truffle/Assert.sol";
- Source truffle/Assert.sol not found
Looks like truffle
folder is not recognized
Environment
- Operating System: Windows 10
- Truffle version: 4.0.5
- Ethereum client: Ganache
- node version: 8.9.1
- npm version: 5.6.0
Issue Analytics
- State:
- Created 6 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Error: Could not find truffle/Assert.sol from any sources
Running truffle test from the command line should import the Assert.sol library if truffle was installed globally (using npm install -g ...
Read more >ConsenSys/truffle - Gitter
I'm on -> windows 10; using VSCode. Just did -> "$ truffle unbox react" mini tutorial. my error is -> "Source "truffle/DeployedAddresses.sol" not...
Read more >Truffle test fails with Error: Could not find artifacts
My solution is to downgrade the version like so: $ npm uninstall -g truffle. $ npm install -g truffle@v5.1.10.
Read more >truffle/assert sol not found
Running truffle test from the command line should import the Assert.sol library if truffle was installed globally (using npm install ...
Read more >Write Solidity tests - Truffle Suite
The addresses of your deployed contracts (i.e., contracts that were deployed as part of your migrations) are available through the truffle/DeployedAddresses.sol ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’m having the same issue following the pet shop tutorial. The tutorial does not mention a git repo to clone, we just unbox the pet-shop box.
I don’t think the editor plays a part in this problem. Where should these files be located? Don’t they come included with the truffle package that is installed globally?
If anyone can explain this in greater / clearer detail that would be great.