elderjs
elderjs copied to clipboard
1.6.5 Unexpected token l in JSON at position 2
I Have bug, after update elderjs version from 1.6.3 to 1.6.5
stack: 'SyntaxError: Unexpected token l in JSON at position 2\n at JSON.parse (
I had the same error when I tried to upgrade to the latest version:
Elder.js error in transform. SyntaxError: Unexpected token l in JSON at position 2
Downgraded to version 1.4.0
I believe this is the same issue I had in https://github.com/Elderjs/elderjs/issues/226.
Basically, if you're including a Svelte component with hydrate-options
you probably need to wrap the keys in quotes. If that fixes it for you, let me know and I'll PR a change to the docs - I had first been waiting for either confirmation from @nickreese that that's the right fix or confirmation from someone else that they had the same issue and can fix it the same way I did. :-)