Giter Site home page Giter Site logo

Comments (2)

orlovvvv avatar orlovvvv commented on July 17, 2024 3

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.

jvoigt avatar jvoigt commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.