ionic4.0常见错误及解决办法

一:页面报错Runtime Error Uncaught (in promise): invalid link: ipserach
说明页面引用出错

解决办法
1 查看 页面module.ts里面是否有export
2 查看在 app.component.ts里是否已经引入该页面
3 尝试重启服务

Runtime Error
Uncaught (in promise): invalid link: ipserach
Error: Uncaught (in promise): invalid link: ipserach
    at c (http://localhost:8100/build/polyfills.js:3:19752)
    at Object.reject (http://localhost:8100/build/polyfills.js:3:19174)
    at Tab.NavControllerBase._fireError (http://localhost:8100/build/vendor.js:48962:16)
    at Tab.NavControllerBase._failed (http://localhost:8100/build/vendor.js:48955:14)
    at http://localhost:8100/build/vendor.js:49002:59
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14976)
    at Object.onInvoke (http://localhost:8100/build/vendor.js:4982:33)
    at t.invoke (http://localhost:8100/build/polyfills.js:3:14916)
    at r.run (http://localhost:8100/build/polyfills.js:3:10143)
    at http://localhost:8100/build/polyfills.js:3:20242

二 安装qrscanners时在执行ionic cordova plugin add cordova-plugin-qrscanner报错

(node:6888) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: Cannot find module '../cordova/platform_metadata'
(node:6888) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

本机安装的是ionic8.0.0
卸载8.0.0

npm uninstall -g cordova

重新安装7.1

npm install -g [email protected]

三 真机调试时报错

requires a development team. Select a development team in the project editor.
Code Signing Error: Code signing is required for product type 'Application' in SDK 'iOS 11.2'

四 点击app,提示不受信任的开发者
设置->通用->设备管理->开发者应用->信任

你可能感兴趣的:(ionic4.0常见错误及解决办法)