-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
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
Can't open Nx Generate UI on Intellij :( #2071
Comments
Do you have a repro I can try this on? |
Hey @MaxKless, The repo I'm using and the only one causing this issue is private, it's the companies' repo. The weirdest part is that nx generator in the cli works perfectly, everything works, except the Generate UI, btw I also checked my VSCode Generate UI doesn't work as well for this project. Could you provide me the basics steps to compile the Nx Console (Language server + plugin) so I can log it here? I'll do my best to fix it and then come back with issue for you and maybe even provide some feedback with what could be improved in the logging itself so my case is easier to identify for others that may suffer from this issue. Renato |
Hey @MaxKless, I'll start this debug soon, will keep you informed, thanks for the input! |
Hey @MaxKless, good news, I found the issue (and actually fixed the Nx Generate UI here by removing the package)! First off, it was nothing related to my Nx Workspace at all (thanks God) but actually it's related to an external dependecy called I pin-pointed the exact location where it throws the error so it can help you maybe patch the Nx Console. Since I'm not an Nx Console expert, I can't actually provide any fix but I can help you by showing where it happens.
I hope my help is of some use, I believe this is related to Project Crystal since you guys are now "inferring" stuff automatically and this is some sort of edge case. Renato |
This is super helpful, thank you. I'll try to repro soon :) Can you fix it by upgrading the dependency? |
That was a last version of that depedency, I didn't need that custom webpack builder anymore since I ported all my Angular projects to Vite using AnalogJS's plugins. And you're welcome! :) |
Hey! I just saw that this package was last published 5 years ago... so I'm not going to take the time to debug & fix this. Still, thank you so much for the work you put in to identify the issue & I'm glad you got it resolved for yourself! |
Hello,
I'm not being able to open up Generate UI in my Intellij IDEA Ultimate, this probably happened after some migration from version X to Y, I'm currently using the latest version of Nx and latest version of Nx Console. I was able to sort of pin point the issue by inspecting the nx-console code.
Nx Report
Versions:
Nx Console: 1.20.0
Intellij IDEA Version: IntelliJ IDEA 2024.1 RC (Ultimate Edition) (Build #IU-241.14494.158, built on March 21, 2024)
The error:
Looks like the error happens here:
I found the location of error above by inspecting
idea.log
, the language server throws this message before the exception is thrown at the Intellij's error window.The weird issue is that Nx Console is working everywhere except my main project, this was probably due to some
nx migrate
maybe. Since the error is not very informative, I cannot have a clue where to look to find the "paths[2]" that was supposed to be a string but received undefined.The text was updated successfully, but these errors were encountered: