Angular 无法为浏览器生成Ionic 3应用程序。错误:DeepLinkConfigToken
我已尝试使用为浏览器构建我的应用程序Angular 无法为浏览器生成Ionic 3应用程序。错误:DeepLinkConfigToken,angular,ionic-framework,browser,ionic3,Angular,Ionic Framework,Browser,Ionic3,我已尝试使用为浏览器构建我的应用程序 ionic cordova build browser --prod 但是它抛出了这个错误:用于查找DeepLinkConfigToken的RegExp没有返回有效数据 我用的是Angular 4.4.6。我读过关于将Angular版本降级到4.1的文章,它解决了这个问题。但我试过了,但没用 提前谢谢 这些是我的依赖项: "dependencies": { "@angular/animations": "~4.4.6",
ionic cordova build browser --prod
但是它抛出了这个错误:用于查找DeepLinkConfigToken的RegExp没有返回有效数据
我用的是Angular 4.4.6。我读过关于将Angular版本降级到4.1的文章,它解决了这个问题。但我试过了,但没用
提前谢谢
这些是我的依赖项:
"dependencies": {
"@angular/animations": "~4.4.6",
"@angular/common": "~4.4.6",
"@angular/compiler": "~4.4.6",
"@angular/compiler-cli": "~4.4.6",
"@angular/core": "~4.4.6",
"@angular/forms": "~4.4.6",
"@angular/http": "~4.4.6",
"@angular/platform-browser": "~4.4.6",
"@angular/platform-browser-dynamic": "~4.4.6",
"@ionic-native/camera": "~4.7.0",
"@ionic-native/core": "~4.7.0",
"@ionic-native/facebook": "~4.5.3",
"@ionic-native/file": "~4.7.0",
"@ionic-native/file-transfer": "~4.7.0",
"@ionic-native/geolocation": "~4.7.0",
"@ionic-native/google-plus": "~4.7.0",
"@ionic-native/splash-screen": "~4.7.0",
"@ionic-native/status-bar": "~4.7.0",
"@ionic/storage": "~2.1.3",
"@ngx-translate/core": "~7.2.2",
"@ngx-translate/http-loader": "~2.0.1",
"cordova-android": "~6.4.0",
"cordova-browser": "~4.1.0",
"cordova-plugin-camera": "~4.0.2",
"cordova-plugin-console": "~1.1.0",
"cordova-plugin-device": "~1.1.7",
"cordova-plugin-facebook4": "~1.9.1",
"cordova-plugin-file": "~6.0.1",
"cordova-plugin-file-transfer": "~1.7.1",
"cordova-plugin-geolocation": "~4.0.1",
"cordova-plugin-googleplus": "~5.2.3",
"cordova-plugin-splashscreen": "~4.1.0",
"cordova-plugin-statusbar": "~2.4.1",
"cordova-plugin-whitelist": "~1.3.3",
"ionic-angular": "~3.9.2",
"ionic-plugin-keyboard": "~2.2.1",
"ionicons": "~3.0.0",
"query-string": "~4.3.4",
"rxjs": "~5.5.10",
"sw-toolbox": "~3.6.0",
"zone.js": "~0.8.26"
},
"devDependencies": {
"@ionic/app-scripts": "1.3.0",
"typescript": "^2.8.1"
},
我设法将包@IONAL/app脚本更新为3.8.0(当时的最新版本),并在导入main.js之前将这一行添加到index.html
<script src="build/vendor.js"></script>
我也更新了所有的软件包,但我认为应用程序脚本更新就足够了