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
I'm using typescript@next (specifically, 1.8.0-dev.20160115) instead of typescript@1.7.5 because I want stateless functional component support in my React code. Running tsc --watch in my root project directory is working great for .ts files:
But it's not even flinching when a .tsx file changes. I downgraded to 1.7.5, and now (with no other changes) running tsc --watch recognizes changes to both .ts and .tsx files (despite complaining a bit about my JSX not evaluating to proper Elements or whatever).
And a bunch of files added by hand, including both .ts and .tsx files in the root directory.
Like I said, 1.7.5 works just fine, so it's not something weird with my editor. Has .tsx been deprecated? (Which would be awesome— I'm all for deprecating .tsx and compiling all .ts files as if they were .tsx if compilerOptions.jsx !== undefined.)
The text was updated successfully, but these errors were encountered:
Update: just switched to working on a different project that didn't have the problem, and found it was running typescript@1.8.0-dev.20160108. So the regression happened sometime in the last week.
Awesome! Just updated to typescript@1.8.0-dev.20160116 and it's recognizing .tsx changes again. Thanks @zhengbli (and @mhegazy for the diagnosis & triage)!
I'm using typescript@next (specifically, 1.8.0-dev.20160115) instead of typescript@1.7.5 because I want stateless functional component support in my React code. Running
tsc --watch
in my root project directory is working great for.ts
files:But it's not even flinching when a
.tsx
file changes. I downgraded to 1.7.5, and now (with no other changes) runningtsc --watch
recognizes changes to both.ts
and.tsx
files (despite complaining a bit about my JSX not evaluating to proper Elements or whatever).I'm using a tsconfig.json with:
And a bunch of files added by hand, including both
.ts
and.tsx
files in the root directory.Like I said, 1.7.5 works just fine, so it's not something weird with my editor. Has
.tsx
been deprecated? (Which would be awesome— I'm all for deprecating.tsx
and compiling all.ts
files as if they were.tsx
ifcompilerOptions.jsx !== undefined
.)The text was updated successfully, but these errors were encountered: