Vue error 6 Cannot find module './some vue undefined' | json online verification

Vue reports an error Cannot find module './a certain vue undefined', and the data from the backend cannot be rendered.

It's not that there is no such module or that the module cannot be found. It is likely that the data sent from the backend does not conform to the JSON specification, and the backend data is not written as standard json data.

It is very likely that a small comma or semicolon will report this error.

Solution:

Paste the backend data on the json online verification website to see if an error is reported.

JSON online verification website

If an error is reported somewhere, find the place where the error was reported.

Go to the background to find this place, select it with the mouse, and replace all of them with the correct ones by ctrl+R.

Guess you like

Origin blog.csdn.net/yangyangdt/article/details/122501401