Ask a question about the deployment of a project.

when testing the project locally, the younger brother did not report any errors, including the normal use of the local background, but put the project on the server, after port 8000, the front end reported an error

Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0
    at VM27 index.js:1
    at <anonymous>

I don"t know, so I have one more thing to ask you. Do you need to uninstall this plug-in when you use a proxy plug-in, npm build when you package it due to cross-domain problems when you are local?

Apr.03,2021

is there a problem of requesting backend data that looks like the returned data is cross-domain?


No, plug-ins are placed under dev dependencies

Menu