-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Unknown compiler option 'jsxImportSource' issue.. #1642
Comments
Same with the The root cause comes from the fact that the TypeScript runtime is specified as a direct dependency inside the docz-core package and is pretty old (3.5.3 vs the latest 4.3.5: @pedronauck Could we imagine to have typescript specified as a peer dependency? The config is defined consumer side and depends on the TypeScript version specified by the consumer. It would sense to do so (and will also avoid multiple typescript copies in the project :) ) |
@pedronauck How are we going to solve this problem? |
Thank you for the report guys! We're currently working to fully upgrade everything inside docz but we try can manage a quick fix to that earlier, and typescript is not a peer-dependency, we need it to build processes. But we'll figure a way out to fix that ASAP. |
@renatobenks Is it feasible to specify typescript as a devDependency? If yes, typescript will be available for your development needs (build process) without impacting consumer (dev dependencies are ignored while |
Yes, totally! Let me check, because it should be as dev-dependency 🤔 |
However @adbayb, |
@renatobenks npm (or whatever node package manager) will install So, here:
|
Oh, I see what you mean now, sorry! 😅 Sure thing, can you send a PR and see what it got? |
I'll be working on a few issues on docz today, so let me know @adbayb. |
@renatobenks Unfortunately not today but I can try to book some time tomorrow |
Awesome! I just advise you to make sure that both rollup and lerna will keep working as properly because maybe, just maybe, that's why typescript is not a dev-dependency as it should. |
@renatobenks and @pedronauck : done ✅ Review needed #1647 🙏 |
Question
Hi
I want to use docz
Unknown compiler option 'jsxImportSource' and
same issue occurs
As you use twin.macro in your project, in tsconfig 'jsxImportSource'
I am using it by setting it to '@emotion/react'.
The above issue occurred and the build is not working, is there any solution?
I tried to change appTsConfig in doczrc, but it doesn't work.
I am also wondering if there is a way to operate it with a separate tsconfig or if there is a plug-in that can solve it.
The text was updated successfully, but these errors were encountered: