-
Notifications
You must be signed in to change notification settings - Fork 2.3k
I successfully compile and migrate then when I try the console I get an error #684
Comments
Try deleting the .DS_Store folders from the projects directory, as a workaround. |
Hi @beshogun, @kingcocomango Are you still seeing this issue on the latest Truffle (4.0.4) using the I've generated some |
@cgewecke hi,i have tried run |
@SephirothLT Hi. Which truffle version are you using? Could you run both:
|
@cgewecke thanks ,I just solved this problem, truffle version is 4.0.4 |
Closing for housekeeping, but please open or open a new issue if anyone continues to see this. |
Hey, could you tell me how the problem was solved. Seems like i'm having the exact same issue. Did DS_Store delete but that didn't work, i've also ensured that my version is 4.0.4
|
@veebuv Thanks for reporting, re-opened and looking into this again. Could you provide some steps to reproduce this? Which command are you running when the error is triggered? |
@veebuv Closing since it seems like you might have resolved this on your own. Please feel free to comment here if you're still seeing this and can show us a way to reproduce it. |
when i run this comment ` Using network 'development'. Running migration: 1_initial_migration.js /usr/local/lib/node_modules/truffle/build/cli.bundled.js:101708 undefined:1 SyntaxError: Unexpected token b in JSON at position 0 |
It's the same for me like @JoyCood reported. Any advice on the issue? |
Hi everyone. I am getting this error. I'm trying to figure it out what is the cause, without any success. Any ideas? /usr/local/lib/node_modules/truffle/build/cli.bundled.js:101723 SyntaxError: Unexpected token i in JSON at position 2 Thanks in advance for any help |
For anyone still having trouble with this; make sure your |
@cgewecke I am still having this issue, I tried removing all .DS_Store using: Funny thing is that it was all working fine, until suddenly without changing a single thing this error popped up out of nowhere. |
I successfully compile and migrate then when I try the console I get an error-
Unexpected error: Cannot provision contracts while instantiating the console.
Error: Cannot parse .DS_Store: Unexpected token in JSON at position 0
at /Users/ben/.nvm/versions/node/v8.8.1/lib/node_modules/truffle/build/cli.bundled.js:209525:27
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:513:3)
It also happens with other files I try and get the console running.. using two contracts on for a token and one for a token sale which creates the token instance. trying to link with web app.
Any help really appreciated. Tried various node fixes but no success yet..
Issue
What the issue is, in broad strokes.
Steps to Reproduce
Please provide the shortest amount of steps to reproduce your issue.
Expected Behavior
What you expected to happen.
Actual Results
What actually happened. Please give examples and support it with screenshots, copied output or error messages.
Environment
The text was updated successfully, but these errors were encountered: