更新时间:2022-06-10 21:57:59
我发现我打错了
从{'express'}
我发现,当您尝试在FrontEnd中调用backEnd时,会发生此问题.当我删除该行时,问题就解决了.
I found that this problem happens when you try to call backEnd stuff in your frontEnd. when I delete that line problem solved.
事实证明,我没有键入import语句,因为我使用单词 response
作为变量名,它是自动导入的.我不确定导入是来自React本身还是另一个VS代码自动完成扩展.
it turns out that I didn't type the import statement because I used the word response
as a variable name, it was automatically imported.
I'm not sure if the import was from React itself or another VS code auto-completion extension.