-
Notifications
You must be signed in to change notification settings - Fork 361
(rpt2 plugin) semantic error TS2304: Cannot find name 'h'. #622
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
semantic error TS17016: JSX fragment is not supported when using --jsxFactory Looks like TypeScript doesn't actually compare the value of
Changing that to |
@marvinhagemeister thanks for the quick reply! If I don't specify and just run
What's the correct way to do it with React? EDIT: Did not mean to Close this 🤦 |
@MarkLyck You were already correct in your first approach to use |
@marvinhagemeister ahh okay, so just waiting for this PR you made to make it into a release to fix the Fragment issue? |
- because microbundle-crl was hard coded for react there was no such problem before - for some reason it will try to use solid jsx in those react projects unless you provide this flag - there's probably a way to configure babel or rollup to use react other ways, but this works, so I'm going with this - developit/microbundle#763 (comment) - developit/microbundle#622
This is related to #608 but the solution does not work for me and the core issue was never solved.
My build was working on 0.1.11
My build fails on 0.1.12
cli command:
yarn microbundle
Error:
this happens on the first line of JSX I have in my .tsx file.
looking into this
h
it seems to be an alias forjsx
microbundle/src/index.js
Line 556 in 2c32109
The suggested solution in the other ticket was adding
--jsx
to the command.microbundle -f es,cjs --jsx React.createElement.
However this did not solve the problem for me it seems.
When running the above command I get the following error instead:
either way forcing the
--jsx
doesn't seem to be a solution, but rather a workaround.I don't believe microbundle is meant to require this?
Here is my
tsconfig.json
:and my
.babelrc
The text was updated successfully, but these errors were encountered: