We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm using Flow with Vue and if I have a jsx template, I get an error.
Here is the code:
// @flow export default { render (h: any) { return <section /> } }
The error is:
5:12 error Cannot resolve name React flowtype-errors/show-errors
React
I can fix it if by putting // @jsx h on the top of the file - but this solution is not ideal.
// @jsx h
I did some research and @babel/plugin-transform-react-jsx supports pragmas in the babel.config.js like this:
@babel/plugin-transform-react-jsx
babel.config.js
{ "plugins": [ ["@babel/plugin-transform-react-jsx", { "pragma": "h" }] ] }
And TypeScript seems to support similar pragmas in the .tsconfig.
.tsconfig
Any way to fix it in Vue?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm using Flow with Vue and if I have a jsx template, I get an error.
Here is the code:
The error is:
I can fix it if by putting
// @jsx h
on the top of the file - but this solution is not ideal.I did some research and
@babel/plugin-transform-react-jsx
supports pragmas in thebabel.config.js
like this:And TypeScript seems to support similar pragmas in the
.tsconfig
.Any way to fix it in Vue?
The text was updated successfully, but these errors were encountered: