Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Unknown compiler option 'jsxFragmentFactory' #711
Comments
|
Thanks will look into it Could you create a small comment on how to reproduce this? Or do you have a repo? |
|
Just add an option Here is the offical document: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-0.html#custom-jsx-factories |
|
We should check TS version and use the appropriate config - it would be a shame to have Microbundle only work with TS 4. |
|
Not only tsconfig.json options but also code syntax will have the same ts version problem. In my case: try {
something()
} catch (e: unknown) {
^ (rpt2 plugin) Error: semantic error TS1196: Catch clause variable cannot have a type annotation.
something()
}Where here Maybe microbundle can try locally installed ts first before using rpt2's default one. Or at least some way to set the version manually. |
|
Thanks for the idea and PR @whitetrefoil - good thinking. |
I guess MicroBundle hasn't support TypeScript 4.x, because I got an error: