uni-app 报错 navigateTo:fail page “/pages/.../...“ is not found

This error means: The page is not recognized

Possible error one: The path of the page is not defined in pages.json [WeChat applet is app.json]

like:

pages.json

"pages": [{
    "path": "pages/index/index"
}, {
    "path": "pages/my/my"
}]

app.json

"pages": [
    "pages/index/index",
    "pages/my/my"
]

Possible error two: The page path of the URL is wrong

use the correct spelling

like:

url: '/pages/index/index'

Note: Do not add any prefix before pages

Guess you like

Origin blog.csdn.net/AdminGuan/article/details/132583148