I have just installed the latest version of Jmix Studio (2.0.4-232) into IntelliJ 2023.2.2. I have already experienced some issues with the view editor and the preview screen and it seems the issue has not been solved yet. Currently I use gradle 7.0.6, Node.js 18.18.0 with Java 17 to run Jmix, but I get an error message regarding installing NodeStacktrace when I want to run/restart the preview screen of a view. Also I cannot add any UI components to it (receiving a ‘component’ cannot be added here’ error message) except by editing the xml itself (view → layout does not appear in the view hierarchy - please check attached image).
Could you please help me out how to solve this issue?
It seems that view designer is trying to find nodejs on the computer, but does not find it and tries to install it. Is nodejs installed globally? Is it accessible by the “node -v” command?
Also, view designer installs node js on the path <user_home>/.vaadin. Check if there are any files there? You can try to delete them.
P.S.: check if there is stable access to the network during the installation of nodejs.
Hey,
I used to have a similar problem.I just needed to manually install pnpm using the following command: npm install --g pnpm .
It worked for me; you can give it a try!
I have the same problem. Nodejs is installed globally (v18.18) and accessible. I deleted .vaadin folder. I installed also pnpm and as I behind corporate proxy, I set also the registry for pnpm.
So however nodejs is installed globally, I have the followings in the log:
2023-10-17 10:13:04 LOG INFO: Running pnpm install to resolve and optionally download frontend dependencies. This may take a moment, please stand by…
2023-10-17 10:13:04 LOG INFO: Using node 18.18.0 located at C:\Program Files\nodejs\node.exe
2023-10-17 10:13:17 LOG INFO: Using npm 9.8.1 located at C:\Program Files\nodejs\npm.cmd
…
2023-10-17 10:15:17 LOG INFO: Frontend dependencies resolved successfully.
Unfortunately, the solution you suggested does not work for me. I also tried to clean/delete the .vaadin folder but it did not solve this issue either. Please check what causes this issue and provide a fix.