question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:closed
  • Created 6 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

8reactions
edevilcommented, Mar 8, 2018

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?

4reactions
cgeweckecommented, May 29, 2018

If anyone can explain this in greater / clearer detail that would be great.

  • What is the initial installation sequence when it fails?
  • Why does re-installing work?
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found