Small micro-channel program display properly in developer tools, on-device debugging error; error Error in a page calls another page js: module "model / model.js" is not defined
Developer Tools normal error message during device debugging
Given as follows, the first to say that a lot of online search is the wrong path; I think if the path is wrong, the error will be on the developer tools will not display properly, the problem is clearly not the path.
Import model.js in weather.js in
model.js export
Solutions
We should be carried out after the finish of a component in app.json the registration page, which is registered when the error codes, model components registered in the component after the weather, so there are being given
the model component registration before the weather component can be solved, commissioning after the developer tools work fine, too normal display device debugging, does not complain, the problem is solved.