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
My deno code contains jsx tags like: <div>hello world</div. I have configured my project to use React from npm, and use the automatic runtime, like so:
This setup works well locally as well as on Deno Deploy. However, when I try to compile this code with dnt, I get a bunch of these errors: error TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
The problem here is that dnt uses a hard-coded jsx compiler option value, and doesn't let me overwrite it:
My deno code contains jsx tags like:
<div>hello world</div
. I have configured my project to use React from npm, and use the automatic runtime, like so:This setup works well locally as well as on Deno Deploy. However, when I try to compile this code with dnt, I get a bunch of these errors:
error TS2686: 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.
The problem here is that dnt uses a hard-coded
jsx
compiler option value, and doesn't let me overwrite it:dnt/mod.ts
Lines 284 to 286 in 2d1d120
The text was updated successfully, but these errors were encountered: