question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

nx generate app fails

See original GitHub issue
You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.

image

Same error here - https://github.com/nstudio/xplat/issues/139

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Domvelcommented, Sep 11, 2019

Does not work. I tried your solution. npm i -D @nstudio/xplat. This does not work in my case. Select ionic angular. (Update: Same error with other types like web.) Fails on nx g app.

nx generate app

>  NX   NOTE  Nx didn't recognize the command, forwarding on to the Angular CLI.

? What name would you like for this app? app1
? What type of app would like to create? ionic           [Ionic app]
You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.

I think it has to do with rxjs? It is used in wrong way. Invalid argument.

Please see the issue for more details. https://github.com/nstudio/xplat/issues/148

1reaction
cbetriforkcommented, Aug 16, 2019

The docs now says npm install -save-dev @nstudio/xplat.

It should be npm install --save-dev @nstudio/xplat

Read more comments on GitHub >

github_iconTop Results From Across the Web

angular application generator error #9161 - nrwl/nx - GitHub
when you run angular application generator it errors Current Behavior it errors if you try to use angular application generator Expected ...
Read more >
Error when generating new angular app in Nx workspace
We're getting the following error when trying to generate an Angular app in an Nx workspace following an upgrade from Angular/Nx 12->14:
Read more >
nrwl-nx/community - Gitter
Hi, I'm trying to run affected:test but I'm getting errors: NX ERROR Running target "test" for affected projects failed . There is list...
Read more >
nx: command not found error [Solved] | bobbyhadz
If the "nx: command not found" error is not resolved, try restarting your terminal. If that doesn't help, run the following command: shell....
Read more >
Migrating an Angular CLI project to Nx
Creates an apps folder for generating applications. ... If you are unable to automatically transform your Angular CLI workspace to an Nx workspace...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found