truffle console: SyntaxError: Unexpected identifier
See original GitHub issueTruffle migrate is working good but while running truffle console
- SyntaxError: Unexpected identifier at new Script (vm.js:51:7) at createScript (vm.js:136:10) at Object.runInContext (vm.js:181:10) at Console.interpret (C:\Users\labo\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:106593:17) at ReplManager.interpret (C:\Users\labo\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:107310:18) at bound (domain.js:375:14) at REPLServer.runBound [as eval] (domain.js:388:12) at REPLServer.onLine (repl.js:492:10) at REPLServer.emit (events.js:180:13) at REPLServer.emit (domain.js:421:20)
Environment
- Operating System: Windows
- Ethereum client:
- Truffle version (
truffle version
):v4.1.6 - node version (
node --version
):v9.9.0 - npm version (
npm --version
): 5.8.0
Issue Analytics
- State:
- Created 5 years ago
- Comments:22 (8 by maintainers)
Top Results From Across the Web
truffle compile - SyntaxError: Unexpected identifier · Issue #3964
Hey @SwanDoggMillionaire, you are just missing a comma at the end of line 14 in your truffle-config.js . Add one and you should...
Read more >How to fix "Uncaught SyntaxError: Unexpected identifier" in ...
How to fix "Uncaught SyntaxError: Unexpected identifier" in truffle console? Ask Question. Asked 10 months ago. Modified 10 months ago. Viewed 208 times....
Read more >For those who are getting some sort of error while using “truffle ...
Truffle migrate is working good but while running truffle console SyntaxError: Unexpected identifier at new Script… github.com.
Read more >Prob with migrate command on Truffle
I am trying to execute the “migrate” command on the truffle. ... SyntaxError: Unexpected identifier ... (vm.js:284:10) at Console.interpret ...
Read more >Problem with truffle - Moralis YouTube Tutorials
pragma solidity ^0.8.0, // Fetch exact version from solc-bin (default: truffle's version) ^^^^^^^^ SyntaxError: Unexpected identifier.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@vidhyaramani Hi. Within
truffle console
you don’t need to prefix the commands withtruffle
. To migrate, just typemigrate
. There’s a list of available commands here.Could you check to see if removing the word ‘truffle’ from your command solves this problem?
You cannot use the truffle keyword when you are in truffle develop