Unexpected JSON token - negative value

14 views
Skip to first unread message

Philippe Baguette

unread,
May 26, 2022, 12:32:05 PM5/26/22
to Closure Compiler Discuss
Hi,

I'm trying to compile the openindoor6 library using closure-compiler (npm package) using the npx command.

I receive error message "Unexpected JSON token" on the layers/indoor.json file where there is a negative value.

Any ides on how to handle this ?

thanks

Bradford Smith

unread,
May 26, 2022, 2:11:42 PM5/26/22
to Closure Compiler Discuss
AFAICT by searching the source code, "Unexpected JSON token" isn't a message generated from closure-compiler itself.
I suspect something's gone wrong before it got invoked.

I have no idea how to "compile the openindoor6 library using closure-compiler (npm package) using the npx command"
and suspect it would take an unreasonable amount of setup to get there.

If you can narrow the problem down to a snippet of JS and a closure-compiler command line that reproduces the problem,
it'll be easier for folks here to help you out.

Best regards,
Bradford

Philippe Baguette

unread,
May 26, 2022, 2:28:33 PM5/26/22
to closure-comp...@googlegroups.com
Thanks. I did indeed submit another request with code and a smaller amount of js files. I'm new to this and this is for an internship.



--

---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/4fd0d98a-98d8-4c69-bc9a-d373f3e0c734n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages