這是我更新 npm 后遇到的錯誤,由于出現 [WDS] Disconnected 錯誤!Mozilla Firefox 控制臺中出現錯誤。這是有經驗的開發人員需要解決的錯誤。5 import firebase from 'firebase/app'; ~~~~~~~~ node_modules/firebase/index.d.ts:9710:1 9710 export = firebase; ~~~~~~~~~~~~~~~~~~ This module is declared with using 'export =', and can only be used with a default import when using the'allowSyntheticDefaultImports' flag.node_modules/@angular/fire/firestore/collection-group/collection-group.d.ts:2:8 - error TS1259: Module '"D:/apps/angularfs3/node_modules/firebase/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag2 import firebase from 'firebase/app'; ~~~~~~~~ node_modules/firebase/index.d.ts:9710:1 9710 export = firebase; ~~~~~~~~~~~~~~~~~~ This module is declared with using 'export =', and can only be used with a default import when using the'allowSyntheticDefaultImports' flag.node_modules/@angular/fire/firestore/firestore.d.ts:9:8 - error TS1259: Module '"D:/apps/angularfs3/node_modules/firebase/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag9 import firebase from 'firebase/app'; ~~~~~~~~ node_modules/firebase/index.d.ts:9710:1 9710 export = firebase; ~~~~~~~~~~~~~~~~~~ This module is declared with using 'export =', and can only be used with a default import when using the'allowSyntheticDefaultImports' flag.node_modules/@angular/fire/auth/auth.d.ts:4:8 - error TS1259: Module '"D:/apps/angularfs3/node_modules/firebase/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flag4 import firebase from 'firebase/app'; ~~~~~~~~
更新 npm 后,node_modules 出現錯誤?
一只名叫tom的貓
2023-07-20 14:30:46