Vue reported an error! Can't solve the urgent need for help!

This dependency was not found:

  • App in ./src/main.js

To install it, you can run: npm install --save App

problem description

the environmental background of the problems and what methods you have tried

related codes

/ / Please paste the code text below (do not replace the code with pictures)

what result do you expect? What is the error message actually seen?

Apr.09,2021

take a closer look, the error report means that the App? you quoted cannot be found in main.js.

because the information given by the question is incomplete, I guess that this problem occurs when the main.js file has a sibling App.vue,
result import App from "App" .

try import App from ". / App.vue" ?


App this component does not reference correctly
you are using import App from "App"
this is the
that is used to reference the installed npm package, please add a path such as import App from ". / App.vue"

Menu