Why are React apps created in temp?
I use IntelliJ, but I figured this question belongs in the WebStorm forum. Although it is of course possible this is a bug/feature in IntelliJ only..
Anyway, I'm trying to create a react app as a submodule, to use as a front-end for a small Spring Boot application. After the Yarn commands are finished, the app is somehow installed in a temp folder, and I have no NPM panel, no new files except for a single webapp.iml file, and don't really know what to do.
Please sign in to leave a comment.
React application is created in TEMP folder first to avoid problems creating react app in non-empty directory - see https://youtrack.jetbrains.com/issue/WEB-24101#comment=27-1764951. Normally it should be copied to the module folder once the generation completes. ut this doesn't unfortunately work if the react application is created as a submodule, https://youtrack.jetbrains.com/issue/WEB-24820
As a workaround I can only suggest copying the generated files manually from the TEMP folder to your module directory
OK, that works. But Elena, that's a weird bug. You have a weird bug :)
Agreed!
But apparently it only took a while before IntelliJ noticed the files...