angular - xplat 您在预期流的位置提供了无效对象。您可以提供 Observable、Promise、Array 或 Iterable
问题描述
我正在尝试使用 xplat 生成一个新应用程序
我正在使用节点版本 11.15
我尝试执行以下操作
npx create-xplat-workspace myworkspace
我生成一切,直到它提示
? Would you like to generate xplat supporting architecture now? You can also generate later with: nx generate @nstudio/xplat:init
not right now [just add xplat tooling]
electron [generate xplat Electron support]
❯ ionic [generate xplat Ionic support]
nativescript [generate xplat NativeScript support]
web [generate xplat Web support]
我选择离子,我得到以下错误
You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
这是全部
`npm install -D @nstudio/xplat
> @nstudio/xplat@8.0.5 postinstall /Users/ag/nxprojects/myworkspace/node_modules/@nstudio/xplat
> node src/utils/postinstall.js
Patch for nx format have been applied
> XPLAT Note:
xplat is updating "/Users/ag/nxprojects/myworkspace/.prettierignore" with a few important extra rules. You may double-check the contents afterwards to ensure they meet your satisfaction.
npm WARN acorn-dynamic-import@4.0.0 requires a peer of acorn@^6.0.0 but none is installed. You must install peer dependencies yourself.
+ @nstudio/xplat@8.0.5
added 11 packages from 66 contributors and audited 898038 packages in 30.891s
found 1 low severity vulnerability
run `npm audit fix` to fix them, or `npm audit` for details
npx nx g @nstudio/xplat:init
> NX NOTE Nx didn't recognize the command, forwarding on to the Angular CLI.
? Would you like to generate xplat supporting architecture now? You can also generate later with: nx generate @nstudio/xplat:init ionic [generate xplat Ionic support]
? Do you prefer to use a frontend framework? angular [ensure platforms are added with Angular]
? Please input a 2-3 character prefix to use with xplat generators: ci
You provided an invalid object where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.
Command failed: npx nx g @nstudio/xplat:init`
解决方案
有同样的问题注意到它失败了,nx g @nstudio/xplat:init
但如果你进入工作区并运行ng g @nstudio/xplat:init
它然后完成。
推荐阅读
- python - “启动器中的致命错误:”使用 pip 或烧瓶时
- c# - 如何使用公共 void 方法但私有成员测试代码?
- powerbi - powerBI 中的分组条形图
- python - 如何在测试服务器时模拟来自集成服务的响应
- java - JAXB 注释问题
- html - CSS 类优先级以及为什么我必须使用 !important 覆盖?
- javascript - 如何构建 JS 应用程序,将所有资产合并到单个文件组件中但不包装到 webpack 模块中
- junit - 为什么 org.apache.commons.lang.StringUtils.isBlank() 为空值和空值返回 false
- python - H5Py 和存储
- php - 强密码验证 laravel