Skip to content
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

Nothing is displayed after refreshing the workspace in webstorm, but everything is normal in vscode. #2336

Open
coderlzw-cn opened this issue Dec 1, 2024 · 12 comments
Labels
type: bug Something isn't working

Comments

@coderlzw-cn
Copy link

Image

Image

@coderlzw-cn coderlzw-cn added the type: bug Something isn't working label Dec 1, 2024
@MaxKless
Copy link
Collaborator

MaxKless commented Dec 3, 2024

Could you please paste your nx report as well as logs?
Go to Help > Diagnostic Tools > Debug Log Settings... and then insert #dev.nx.console:trace. Then paste the idea.log or sections of it when the error happens.

@coderlzw-cn
Copy link
Author

@MaxKless

Image

Kapture.2024-12-03.at.21.30.11.mp4

@MaxKless
Copy link
Collaborator

MaxKless commented Dec 3, 2024

Can you right-click -> Open DevTools and see if there are any logs in the console?

@coderlzw-cn
Copy link
Author

idea.log
@MaxKless

@MaxKless
Copy link
Collaborator

MaxKless commented Dec 4, 2024

Interesting. Not sure how it would be related, exactly, but your logs show a constant stream of temp files being changes and logged. Can you paste your .gitignore files? It looks like changes in node_modules in subdirectories are being picked up, which seems like a bad idea. All kinds of node_modules should be ignored.
You can also try adding a glob for all node_modules to .nxignore

@coderlzw-cn
Copy link
Author

@MaxKless

This is not a git project so there is no .gitignore Now I excluded node_node_modules and .idea in .nxignore

Image

idea.log

This is normal in some cases, such as deleting dependencies and re-downloading them.

@MaxKless
Copy link
Collaborator

MaxKless commented Dec 4, 2024

It looks like the constant refreshing is gone from the logs. Does the view show up now?

@coderlzw-cn
Copy link
Author

@MaxKless
It seems to be a problem with the Chinese folder path. Can it be fixed? In addition to the plug-in problem, another problem is that the serve command sometimes does not respond.
Image

@MaxKless
Copy link
Collaborator

MaxKless commented Dec 5, 2024

Could you create a minimal repro for me? Just a repository with some chinese folders where you're seeing this issue. Then I can most quickly fix what's going on!

@coderlzw-cn
Copy link
Author

react-admin.zip

This is the entire project, which is placed under the /user/xxx/ 开发/全栈项目/ react-admin,You can try it a few times, it may work in some cases, or it may break the next time after removing node_modules

@MaxKless
Copy link
Collaborator

MaxKless commented Dec 5, 2024

Hmmmm I added the chinese path and tried locally, the UI still showed up for me. However, I saw more of these watcher events being triggered, maybe that's related? What if you also add **/.nx/ to your .nxignore? Does it change anything?

@coderlzw-cn
Copy link
Author

idea.log
Still not, you can try to delete.nx, node_modules,.idea and other directories, and then copy the project to another Chinese path, or move the location, delete and re-download the dependency and other operations

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants