Unexpected token < in JSON at position 0
See original GitHub issueI installed create-react-app
and added a simple flare file.
I am able to see the Flare logo, but cannot see my animation.
Not sure what is wrong.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (1 by maintainers)
Top Results From Across the Web
SyntaxError: Unexpected token < in JSON at position 0
This happens when you are running backend and frontend on the same sever (e.g., localhost). To fix that, in the package.json inside your...
Read more >What Is JSON and How to Handle an “Unexpected Token” Error
“Unexpected token < in JSON at position 0” is the error that I have seen most throughout my time of working as a...
Read more >Unexpected token < in JSON at position 0 - Dave Ceddia
The exact text of this error will differ depending on what the server returned. The token and the position may vary, but the...
Read more >Unexpected token u in JSON at position 0 Error in JS [Fixed]
The "SyntaxError: Unexpected token u in JSON at position 0" error occurs when we pass a value that is not valid JSON to...
Read more >How to Fix SyntaxError: Unexpected token < in JSON at ...
Usually this error is caused when your server returns HTML (which typically begins with <DOCTYPE html> or <html> ) instead of JSON. Valid...
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 FreeTop 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
Top GitHub Comments
The
.flr
file needs to be in the public folder and thefile
attribute is relative to the public folder. If your file is/public/animate.flr
then your attribute should befile='animate.flr'
.@FinalAngel move your exported_animation.flr to the public directory.