gpt4 book ai didi

angular - 模块 '"node_modules/@angular/core/core "' has no exported member ' OpaqueToken'

转载 作者:搜寻专家 更新时间:2023-10-30 21:13:29 25 4
gpt4 key购买 nike

node_modules/@ionic/cloud-angular/dist/es5/index.d.ts

Typescript ErrorModule '"/home/ritzylab/ionic-code-20-11/munshiji247-ionic/node_modules/@angular/core/core"' has no exported member 'OpaqueToken'.

import { ModuleWithProviders, OpaqueToken } from '@angular/core';

您可以在下面找到我的组件的版本:

ionic 框架:3.9.2

Ionic 应用程序脚本:3.2.0

Angular 核心:7.0.4

Angular 编译器 CLI:7.0.4

节点:11.2.0

 "dependencies": {
"@agm/core": "1.0.0-beta.5",
"@angular/common": "7.0.4",
"@angular/compiler": "7.0.4",
"@angular/compiler-cli": "7.0.4",
"@angular/core": "7.0.4",
"@angular/flex-layout": "^7.0.0-beta.19",
"@angular/forms": "7.0.4",
"@angular/http": "7.0.4",
"@angular/platform-browser": "7.0.4",
"@angular/platform-browser-dynamic": "7.0.4",
"@ionic-native/barcode-scanner": "4.17.0",
"@ionic-native/base64": "^4.17.0",
"@ionic-native/battery-status": "4.17.0",
"@ionic-native/camera": "4.17.0",
"@ionic-native/core": "4.17.0",
"@ionic-native/file": "4.17.0",
"@ionic-native/file-chooser": "^4.17.0",
"@ionic-native/file-opener": "^4.17.0",
"@ionic-native/file-path": "4.17.0",
"@ionic-native/file-transfer": "4.17.0",
"@ionic-native/geolocation": "4.17.0",
"@ionic-native/http": "^4.17.0",
"@ionic-native/keyboard": "4.17.0",
"@ionic-native/media": "4.17.0",
"@ionic-native/media-capture": "4.17.0",
"@ionic-native/network": "4.17.0",
"@ionic-native/splash-screen": "4.17.0",
"@ionic-native/status-bar": "4.17.0",
"@ionic-native/transfer": "3.14.0",
"@ionic-native/video-capture-plus": "4.17.0",
"@ionic-native/video-player": "4.17.0",
"@ionic/cloud-angular": "0.12.0",
"@ionic/storage": "2.2.0",
"@types/cordova-plugin-battery-status": "1.2.3",
"@types/cordova-plugin-media": "3.0.0",
"@types/ionic": "3.19.0",
"@types/underscore": "1.8.9",
"angular2-signaturepad": "2.8.0",
"babel-runtime": "6.26.0",
"backo2": "1.0.2",
"component-bind": "1.0.0",
"cordova": "^8.1.2",
"cordova-android": "7.1.2",
"cordova-plugin-advanced-http": "2.0.1",
"cordova-plugin-battery-status": "2.0.2",
"cordova-plugin-compat": "^1.2.0",
"cordova-plugin-device": "2.0.2",
"cordova-plugin-file-opener2": "2.0.19",
"cordova-plugin-file-transfer": "1.7.1",
"cordova-plugin-geolocation": "4.0.1",
"cordova-plugin-media": "^5.0.2",
"cordova-plugin-media-capture": "3.0.2",
"cordova-plugin-splashscreen": "5.0.2",
"cordova-plugin-statusbar": "2.4.2",
"cordova-plugin-video-capture-plus": "1.0.0",
"cordova-plugin-video-player": "git+https://github.com/moust/cordova-plugin-videoplayer.git",
"cordova-plugin-whitelist": "1.3.3",
"cordova-plugin-wkwebview-engine": "https://github.com/driftyco/cordova-plugin-wkwebview-engine.git",
"cordova-sqlite-storage": "2.5.1",
"engine.io-client": "3.3.1",
"font-awesome": "4.7.0",
"has-binary": "0.1.7",
"ionic": "^4.4.0",
"ionic-angular": "3.9.2",
"ionic-image-loader": "6.3.2",
"ionic-img-viewer": "2.9.0",
"ionic-plugin-keyboard": "2.2.1",
"ionicons": "4.4.7",
"isobject": "3.0.1",
"jquery": "3.3.1",
"lodash": "4.17.11",
"moment": "2.22.2",
"moment-timezone": "0.5.23",
"parseuri": "0.0.5",
"phonegap-plugin-barcodescanner": "8.0.0",
"phonegap-plugin-push": "2.2.3",
"reflect-metadata": "0.1.12",
"rxjs": "6.3.3",
"rxjs-compat": "^6.3.3",
"setimmediate": "1.0.5",
"signature_pad": "3.0.0-beta.3",
"socket.io-client": "2.1.1",
"socket.io-parser": "3.3.0",
"sw-toolbox": "3.6.0",
"to-array": "0.1.4",
"underscore": "1.9.1",
"zone.js": "0.8.26"

最佳答案

它看起来像是组件 flex-layout 的错误版本:https://www.npmjs.com/package/@angular/flex-layout你用过吗?如果是,你可以试试:

  • 删除“节点模块”目录,
  • 删除 package.json 中的 @angular/flex-layout 行
  • 运行命令npm i @angular/flex-layout

关于angular - 模块 '"node_modules/@angular/core/core "' has no exported member ' OpaqueToken',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53426423/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com