Comments (2)
Generators seem to work for clean project (no framework preset + integrated monorepo)
UI generator works
{
"devDependencies": {
"@nx/js": "19.1.0",
"@nx/workspace": "19.1.0",
"nx": "19.1.0"
}
}
UI generator doesn't work
{
"devDependencies": {
"@nx/angular": "19.1.0",
"@nx/js": "19.1.0",
"@nx/workspace": "19.1.0",
"nx": "19.1.0"
}
}
The issue begins when installing @nx/angular but I had not tested other @nx/* packages yet.
Edit:
tested with
- Node 18, 20, 22
- multiple Nx Console extension versions: multiple versions between 18.10 and 18.21.3
The problem is apparent with @nx/angular, just tested @nx/react and generator works fine
(maybe problem is related to recent 19.1.0 update to support Angular 18)
Error logs from NX Language Server:
[Error - 11:05:13 AM] Unhandled exception: The "paths[2]" argument must be of type string. Received undefined TypeError [ERR_INVALID_ARG_TYPE]: The "paths[2]" argument must be of type string. Received undefined at new NodeError (node:internal/errors:405:5) at validateString (node:internal/validators:162:11) at resolve (node:path:1097:7) at am (/home/node/.vscode-server/extensions/nrwl.angular-console-18.21.3/nxls/main.js:88:12902) at um (/home/node/.vscode-server/extensions/nrwl.angular-console-18.21.3/nxls/main.js:88:11559) at ox (/home/node/.vscode-server/extensions/nrwl.angular-console-18.21.3/nxls/main.js:88:11299) at async Promise.all (index 6) at async bI (/home/node/.vscode-server/extensions/nrwl.angular-console-18.21.3/nxls/main.js:88:10968) at async Mc (/home/node/.vscode-server/extensions/nrwl.angular-console-18.21.3/nxls/main.js:88:17448) at async ZQ (/home/node/.vscode-server/extensions/nrwl.angular-console-18.21.3/nxls/main.js:88:29395)
from nx-console.
I get the same error in my current project in Intellji.
IntelliJ IDEA 2024.1.2 (Ultimate Edition)
Build #IU-241.17011.79, built on May 22, 2024
Nx Console: 1.24.0 (2024-05-10
node npmv20.13.1
npm 10.5.2
Unhandled exception in [ComponentManager(ProjectImpl@1188904724), CoroutineName(dev.nx.console.generate.NxGenerateService), StandaloneCoroutine{Cancelling}@72e34a57, Dispatchers.Default]
org.eclipse.lsp4j.jsonrpc.ResponseErrorException: Request nx/generators failed with message: The "paths[2]" argument must be of type string. Received undefined
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.handleResponse(RemoteEndpoint.java:209)
at org.eclipse.lsp4j.jsonrpc.RemoteEndpoint.consume(RemoteEndpoint.java:193)
at dev.nx.console.nxls.NxlsWrapper.start$lambda$9$lambda$8(NxlsWrapper.kt:109)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.handleMessage(StreamMessageProducer.java:194)
at org.eclipse.lsp4j.jsonrpc.json.StreamMessageProducer.listen(StreamMessageProducer.java:94)
at org.eclipse.lsp4j.jsonrpc.json.ConcurrentMessageProcessor.run(ConcurrentMessageProcessor.java:113)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
Suppressed: kotlinx.coroutines.internal.DiagnosticCoroutineContextException: [ComponentManager(ProjectImpl@1188904724), CoroutineName(dev.nx.console.generate.NxGenerateService), StandaloneCoroutine{Cancelled}@72e34a57, Dispatchers.Default]
I hope this helps. Thanks for all the great work!
If helpfull i could provide a reproduction later.
from nx-console.
Related Issues (20)
- Spaces being removed in generators parameters in UI HOT 10
- Cannot create nx Workspace HOT 1
- Multiple terminal popups on Windows HOT 7
- "We couldn't find any projects in this workspace" HOT 2
- Windows: descriptions breaks the Generate UI HOT 1
- works if the project is in the root folder HOT 1
- [Jetbrains] Nx Console cannot run any task from IDE if there's a folder named `nx` in workspace root HOT 1
- Nx Console Generate (UI) tab displaying raw HTML instead of generator options UI in Webstorm HOT 3
- Generate UI dropdown fails to render HOT 6
- nx console generator path argument bug HOT 6
- Show context menu Nx actions in Rider HOT 3
- Add `Move/Remove/etc` actions to the Nx Console context menu in Intellij/Webstorm/Rider HOT 1
- Add `Common Nx Commands` panel to Intellij HOT 1
- no commands in generate & run target HOT 2
- question: how to use new command ui? HOT 2
- nx debug fails to start with a weird console message: ^[[7;1R HOT 1
- NX Console V18.22.0 removed Generate & Run Target HOT 8
- Generate UI window does not render in VSCode HOT 3
- Generate UI tab does NOT open after selection in VS Code / Nx Console HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx-console.