[英]Namespace 'Ember' has no exported member 'RSVP'
我在Ember中使用打字稿,突然開始出現此錯誤時,一切工作正常。 以下是tsconfig.json-(自從我上次知道它正在運行並簽入以來,什么都沒有改變)
{
"compilerOptions": {
"importHelpers": true,
"target": "ES6",
"allowJs": true,
"moduleResolution": "node",
"noEmitOnError": true,
"noEmit": false,
"emitDecoratorMetadata": false,
"experimentalDecorators": true,
"noEmitHelpers": true,
"baseUrl": ".",
"paths": {
"****/config/*": ["config/*"],
"****/tests/*": ["tests/*"],
"****/*": ["app/*"],
"****/common/*": ["common/*"],
"npm:*": ["local-types/*"],
"*": ["local-types/*"],
"tslib": ["node_modules/tslib/*"]
},
"typeRoots": [
"bower_components"
],
"watch": false
},
"include": [
"app/**/*.ts",
"tests/**/*.ts",
"mirage/**/*.ts",
"common/**/*.ts"
]
}
tsc --version版本2.2.1
有人遇到過嗎? 我已經無聊了許多小時。
原來這是Ember更新問題,而不是TypeScript。 決定不升級,並且此時已進行重大更改,從而解決了該問題。 ps-從package.json中刪除所有^,以阻止其自動升級軟件包。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.