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
Same code got error in js file but no error in ts file #31312
Looks like this happens with anything using import:
// example.jsimport*asanythingfrom'typescript'// 1 import * as anything from 'typescript' // Import declaration conflicts with local declaration of 'axios'.ts(2440)~~~~~~~~~~~~~anything.defaults.timeout=22// tsconfig{"compilerOptions": {"target": "es5","module": "commonjs","allowJs": true,"checkJs": true,"esModuleInterop": true}}
Activity
mjbvz commentedon May 8, 2019
Confirmed this on 3.5.0-dev.20190508.
From f12, the other local declaration of
axiosseems to be caused by the second lineorta commentedon Jul 29, 2019
Looks like this happens with anything using
import:orta commentedon Jul 30, 2019
Looks related to the binder: inside
function checkAliasSymbolTS has module and assignment stripped away somewhere, whereas JS does not which triggers the error message.
Allow expando additions to an imported object in JavaScript - fixes m…