With truffle 4.0.5 on windows, test files fail to "import" with error:

Error

ParserError: Source "truffle/Assert.sol" not found: File not supplied initially.
import "truffle/Assert.sol";
ParserError: Source "truffle/DeployedAddresses.sol" not found: File not supplied initially.
import "truffle/DeployedAddresses.sol";

Steps to Reproduce

  • Created a test file and try to import truffle/Assert.sol and truffle/DeployedAddresses.sol

Expected Behavior

  • Test script should import scripts identified

Actual Results

  • Error not found: File not supplied initially.

What mean by reinstalling the project? How to make it work? and Where should the global Truffle files be?

  • What command are you running for testing? Can you show us your test file and the directory layout used? – Ismael Oct 11 at 15:22

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.