You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Incorrect "Cannot find name" when importing default value #26391
I also face the issue with default import from a js file with exports.default = Component. import Component from '...' worked fine in version 2.8.4 Now it woks only with import {default as Component} from '...'.
There is "allowSyntheticDefaultImports": true in my tsconfig, setting option to false resolves the issue, but creates much more troubles in my project.
Activity
IIIristraM commentedon Aug 17, 2018
I also face the issue with default import from a js file with
exports.default = Component.import Component from '...'worked fine in version2.8.4Now it woks only withimport {default as Component} from '...'.There is
"allowSyntheticDefaultImports": truein mytsconfig, setting option tofalseresolves the issue, but creates much more troubles in my project.Probably this is related issue.
RyanCavanaugh commentedon Jul 23, 2025
This appears to be fixed now