Open iyegoroff opened 7 years ago
Please take a look into the dev console for any error outputs and paste in here.
file: 'file:///Users/iyegoroff/Documents/dev/js/ts-test/test.ts' severity: 'Error' message: 'Cannot find name 'Component'.' at: '1,1' source: 'ts'
Please provide a sample project.
https://github.com/iyegoroff/ts-importer-bug
Autoimporting works only for Something
symbol, but not for Component
.
ts-importer symbols
{
"knownSymbols": {
"Component": [
{
"name": "Component",
"module": "react",
"isDefault": false
}
],
"Something": [
{
"name": "Something",
"path": "/Users/iyegoroff/Documents/dev/js/ts-test/temp.ts",
"type": "const",
"isDefault": false
}
]
}
}
This is currently not implemented. See Todo section:
Follow up ///
Those can just be imported if a import statement exists in any ts file
So have this is implemented now?
No ...
This is hard work to do, because of the wildcard export feature like export * from './zone';
which may be nested too.
If
tsimporter.preferRelative
istrue
import statement is not being added automatically when selecting symbol from drop-down menu.