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

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.

On-device debugging error.
Import model.js in weather.js in
In introducing model.js weather, js
model.js export
Here Insert Picture Description
Here Insert Picture Description

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
Here Insert Picture Description
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.
Here Insert Picture Description

Published an original article · won praise 1 · views 48

Guess you like

Origin blog.csdn.net/seari_esz/article/details/104106807