flow
flow copied to clipboard
Generated tsconfig.json doesn't fully take the frontend dir location into account
Description of the bug
The generated tsconfig.json file currently has static references to frontend in the baseUrl and include properties. This needs to be set to src/main/frontend if that's is the frontend directory. Without those properties, VS Code gives 'React' refers to a UMD global, but the current file is a module. Consider adding an import instead. as an error from any code that uses JSX.
Expected behavior
JSX should work out of the box regardless of the frontend directory location
Minimal reproducible example
https://github.com/vaadin/skeleton-starter-hilla-react/tree/6a3abed118968003b03b008be7013143f1780438.
Versions
- Vaadin / Flow version: Vaadin 24.4.0.alpha14
- IDE (if applicable): VS Code 1.87.0