Skip to content

Console Error Lesson #9 #5

@Oliver-Turp

Description

@Oliver-Turp

Getting error Uncaught (in promise) SyntaxError: Unexpected token '<', "<!DOCTYPE "... is not valid JSON in the chrome console when running both front end backend lesson #9. Right after you used the proxy.

I copy pasted your repo code into my copy, no fix.

I clone your repo and run it, works fine. Only thing different is the MONGO_URI but that worked fine til now works fine in postman this error is linked to the index setup apparently.

The only other thing I can think of is I am using VITE over CRA but the general methodology should work fine, no?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions