Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

truffle compile - SyntaxError: Unexpected identifier #3964

Closed
SwanDoggMillionaire opened this issue Apr 5, 2021 · 3 comments
Closed

truffle compile - SyntaxError: Unexpected identifier #3964

SwanDoggMillionaire opened this issue Apr 5, 2021 · 3 comments

Comments

@SwanDoggMillionaire
Copy link

Hi there,

when I run 'truffle compile' I got the following, SyntaxError: Unexpected identifier and I don't know how to fix that now. I guess I need to change the compiler in some way?
The result is as below screenshot:

image

Here is the truffle-config.js in case that helps:

image

Any support on this is much appreciated.

Environment

  • Operating System: MacOSX
  • Ethereum client:
  • Truffle version (5.1.39):
  • node version (10.16.3):
  • npm version (6.9.0):
@eggplantzzz
Copy link
Contributor

Hey @SwanDoggMillionaire, you are just missing a comma at the end of line 14 in your truffle-config.js. Add one and you should be good to go!

@SwanDoggMillionaire
Copy link
Author

Perfect, this worked. Thanks for the quick response and eagle eyes!

@eggplantzzz
Copy link
Contributor

No problem! Glad you got it worked out! Closing this.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants