Comments (11)
ts 4.9.4
support is added in ts-patch v2.1.0
from ttypescript.
@samchon Libraries like tts and ts-patch augment the TypeScript libraries. It isn't the TS team's responsibility to modify the compiler to support our tools. The functions we modify are internal and not a part of public API, so it's on us to keep up with changes.
If this is an issue, I'll have ts-patch working later today. Unfortunately, I don't have access to modify this library, so you'll have to wait on @cevek to follow suit.
I will update in this thread when I've investigated the issue.
from ttypescript.
ts
4.9.4
support is added in ts-patchv2.1.0
ts
4.9.4
support is added in ts-patchv2.1.0
So downgrading typescript from ^5.x.x
to ^4.x.x
works 🎉
from ttypescript.
No solution yet for ts5, downgrading to 4 works
from ttypescript.
Latest ts-patch rc (beta) supports ts v5, and I added some functionality so you don't have to do anything major to migrate from ttypescript. Just install and use tspc
instead of ttsc
Here's more detail:
from ttypescript.
It looks related to microsoft/TypeScript#51542
probably not an issue of ttypescript
from ttypescript.
4.9.4 is now out FWIW
from ttypescript.
TS has been updated to 4.9.4, but transformation is not working yet.
How about you @nonara ?
from ttypescript.
@DanielRosenwasser May I ask you one thing?
Looking at code of this ttypescript
, it transforms TS source code by replacing ts.createProgram
function. But after TS 4.9 patch, the transformed.createTransform
function never be called. Is there any criticial change on TS not to call the createProgram
function or overwrite the createProgram
function variable when compiling?
ttypescript/packages/ttypescript/src/patchCreateProgram.ts
Lines 32 to 113 in a81ff17
from ttypescript.
@samchon I'll take a look tomorrow and work it out.
from ttypescript.
@cevek I just analyzed what makes ttypescript
broken for a while. Hope my analysis to be helpful.
I'd tried hard coding special editing on tsc.js
of TS and succeeded to transforming by modifing performCompilation
function to be exported function. However, the performCompilation
function is not exported member, but an internal function of executeCommandLine.ts file.
Therefore, to fix this bug occured after TS 4.9 update, ttypescript
should update not only createProgram
file, but also executeCommandLine
function too.
@DanielRosenwasser Is it possible to change the executeCommandLine
function provides an additional and optional prarameter that creating the Program
class instance? Or can you re-patch the TS 4.9 (maybe 4.9.5) that only wrapping ts.createProgram
can be working again? I think it would be really helpful for @cevek, developer of this ttypescript
project and the others using this ttypescript
library.
from ttypescript.
Related Issues (20)
- Typescript 4.5.2: Cannot read property 'impliedNodeFormat' of undefined HOT 4
- How to use it in vite? HOT 1
- parcel-plugin-ttypescript Is the module outdated? HOT 2
- latest version 1.5.13 is not documented
- _ßr is not defined error HOT 2
- Remove dependency on `resolve`
- v1.15.14 has been published without compilation HOT 1
- Can use it on nextjs?
- Fail to load TS on node >= 16.18 HOT 2
- Not working on TS 5.0 HOT 17
- Warning: Accessing non-existent property 'tracing' of module exports inside circular dependency" when using ttypescript as compiler for ts-jest HOT 3
- "Warning: Accessing non-existent property 'tracing' of module exports inside circular dependency" when using ttypescript as compiler for ts-jest HOT 2
- "TypeError: Cannot read property 'split' of undefined" when getting Typescript version numbers HOT 9
- How to exec console.log() at jest? HOT 1
- Can I work with you again on a project you created? HOT 3
- Does ttypescript now support new ts version 5.x.x HOT 6
- Add deprecation notice
- Cannot set property constructor of [object Object] which has only a getter HOT 8
- run transformer on .d.ts file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ttypescript.