Install the JetBrains Toolbox for the latest version and easy updating in the future.
Update your IDEA regularly because improvements and bugs for the WSL-2 are released all the time.
The project can be imported via the network access
\\wsl$\Ubuntu
In idea.properties
Help | Edit Custom Properties and add the following:
idea.case.sensitive.fs=true
In File | Project Structure
| Project
It must be the installed JDK on your distribution (Not the Windows installation)
In File | Settings
| search for Node
Select the Node interpreter based on your current installation (Not the Windows installation)