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.

Error: Could not find zeppelin-solidity/contracts/crowdsale/Crowdsale.sol from any sources

See original GitHub issue

We are using zeppelin-solidity package.

Error: Could not find zeppelin-solidity/contracts/crowdsale/Crowdsale.sol from any sources; imported from /home/travis/build/bitclave/crowdsale/coverageEnv/contracts/BonusCrowdsale.sol

https://travis-ci.org/bitclave/crowdsale/builds/289704002

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
cgeweckecommented, Oct 18, 2017

Hi @k06a. If you’re doing this in your solidity files:

import "zeppelin-solidity/contracts/crowdsale/Crowdsale.sol";

Do this in your .solcover.js config file

module.exports = {
  copyNodeModules: true
}

At the moment we don’t automatically copy the modules because it can take a long time and this is only a problem when importing solidity into solidity from npm installed packages. Solidity’s import directive doesn’t recursively search outside the parent directory the way JS import or require does.

0reactions
k06acommented, Oct 20, 2017

Finally fixed my issues. Do not know how exactly: https://github.com/bitclave/crowdsale @cgewecke thanks for help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Truffle Compile Error (Could not find zeppelin)
You are missing ".sol" in the filename you want to import. It should be: import "zeppelin-solidity/contracts/token/ERC20/MintableToken.sol" ...
Read more >
Unable to deploy contract - OpenZeppelin Forum
... import "zeppelin-solidity/contracts/crowdsale/Crowdsale.sol"; ... price at which whitelisted buyers will be able to buy tokens uint256 ...
Read more >
Why is the open zeppelin Safe Math contract not importing?
This one is for solidity 0.6.0 the version you are currently using. ... openzeppelin-contracts/blob/master/contracts/utils/math/SafeMath.sol.
Read more >
ConsenSys/truffle - Gitter
Error : The contract code couldn't be stored, please check your gas amount ... import "zeppelin-solidity/contracts/crowdsale/validation/CappedCrowdsale.sol";
Read more >
Ethereum Contract Diff Checker - Etherscan
Contract Source Code: File 1 of 1 : OAKToken. pragma solidity 0.4.18; // File: zeppelin-solidity/contracts/ownership/Ownable.sol /** * @title Ownable * @dev ...
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