gsn-sample-chat_app icon indicating copy to clipboard operation
gsn-sample-chat_app copied to clipboard

error // when using 'oz create'

Open walter-grace opened this issue 6 years ago • 5 comments

I keep getting this error, tried a few different tries, I get this error;

_Error while validating contract ChatApp: Error: Cannot find source data for contract Ownable (base contract of ChatApp). This often happens because either:

  • An incremental compilation step went wrong. Clear your build folder and recompile.
  • There is more than one contract named Ownable in your project (including dependencies). Make sure all contracts have a unique name, and that you are not importing dependencies with duplicated contract names (for example, openzeppelin-eth and openzeppelin-solidity)._

Then I also have this at the bottom; No AST nodes of type ContractDefinition with id 693 found.

Not sure the issue, thanks in advance

walter-grace avatar Aug 28 '19 01:08 walter-grace

Hi @walter-grace

I assume you have tried clearing your build folder and recompiling before doing npx oz create?

rm -rf build
npx openzeppelin compile

abcoathup avatar Aug 29 '19 06:08 abcoathup

Hi @walter-grace ! Do you have a github repo I could take a look at? I think there is a probably an issue with the way contracts are being inherited or the dependencies. Are you using the cloned chat-app repo with no changes?

crazyrabbitLTC avatar Aug 29 '19 08:08 crazyrabbitLTC

@abcoathup When I use npx oz create I don't get the main error; but still an error that says:

No AST nodes of type ContractDefinition with id 693 found

@crazyrabbitLTC i just used git clone https://github.com/OpenZeppelin/gsn-sample-chat_app

walter-grace avatar Aug 29 '19 17:08 walter-grace

Hi @walter-grace

What Operating System, node/npm versions are you running this on?

abcoathup avatar Aug 30 '19 01:08 abcoathup

@abcoathup Mac OS node -v v10.16.0 npm -v 6.9.0

walter-grace avatar Aug 30 '19 03:08 walter-grace