failure to create angular-nest workspace
See original GitHub issue- I am running the latest version
- I checked the documentation and found no answer
- I checked to make sure that this issue has not already been filed
- I’m reporting the issue to the correct repository (not related to Angular, AngularCLI or any dependency)
Expected Behavior
angular-nest applications is created without errors.
Current Behavior
angular-nest with certain choices is not created correctly.
Failure Information (for bugs)
Schematic input does not validate against the Schema: {"name":"js-backend","inlineStyle":false,"inlineTemplate":false,"prefix":"javascript-universal","skipTests":false,"style":"@emotion/styled","enableIvy":false,"routing":false,"skipInstall":true,"skipPackageJson":false}
Errors:
Data path ".style" should be equal to one of the allowed values.
Workspace creation failed, see above.
(node:6190) UnhandledPromiseRejectionWarning: Error: Command failed: "/tmp/tmp-6190GeNqZTaNowpf/node_modules/.bin/ng" new javascript-universal --preset="angular-nest" --appName="js-backend" --style="@emotion/styled" --collection=@nrwl/workspace
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:657:15)
at createApp (/home/linken/.npm/_npx/6190/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:345:21)
at /home/linken/.npm/_npx/6190/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:64:21
at processTicksAndRejections (internal/process/task_queues.js:93:5)
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
npx create-nx-workspace javascript-universal
- Type/pick -> angular-nest -> js-backend
Context
- nx 8.5.0
- arch linux
- node 12.10.0
- npm 6.11.3
Failure Logs
$ npx create-nx-workspace javascript-universal
npx: installed 164 in 7.34s
? What to create in the new workspace angular-nest [a workspace with a full stack application (Angular + Nest)]
? Application name js-backend
? Default stylesheet format emotion [ https://emotion.sh]
Creating a sandbox with Nx...
new javascript-universal --preset="angular-nest" --appName="js-backend" --style="@emotion/styled" --collection=@nrwl/workspace
CREATE javascript-universal/nx.json (211 bytes)
CREATE javascript-universal/tsconfig.json (509 bytes)
CREATE javascript-universal/README.md (2715 bytes)
CREATE javascript-universal/.editorconfig (245 bytes)
CREATE javascript-universal/.gitignore (503 bytes)
CREATE javascript-universal/.prettierignore (74 bytes)
CREATE javascript-universal/.prettierrc (26 bytes)
CREATE javascript-universal/angular.json (96 bytes)
CREATE javascript-universal/package.json (1259 bytes)
CREATE javascript-universal/apps/.gitkeep (1 bytes)
CREATE javascript-universal/libs/.gitkeep (0 bytes)
CREATE javascript-universal/tools/tsconfig.tools.json (218 bytes)
CREATE javascript-universal/tools/schematics/.gitkeep (0 bytes)
CREATE javascript-universal/.vscode/extensions.json (164 bytes)
> core-js@2.6.9 postinstall /home/linken/tmp/Coding/github/javascript-universal/node_modules/babel-runtime/node_modules/core-js
> node scripts/postinstall || echo "ignore"
> core-js@3.2.1 postinstall /home/linken/tmp/Coding/github/javascript-universal/node_modules/core-js
> node scripts/postinstall || echo "ignore"
> @angular/cli@8.3.3 postinstall /home/linken/tmp/Coding/github/javascript-universal/node_modules/@angular/cli
> node ./bin/postinstall/script.js
> @nrwl/angular@8.5.0 postinstall /home/linken/tmp/Coding/github/javascript-universal/node_modules/@nrwl/angular
> node ./scripts/nx-cli-warning.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/webpack-dev-server/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/watchpack/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fork-ts-checker-webpack-plugin/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@angular/compiler-cli/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/@angular-devkit/build-angular/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.0.7 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.0.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
added 1181 packages from 560 contributors and audited 31011 packages in 16.004s
found 0 vulnerabilities
Schematic input does not validate against the Schema: {"name":"js-backend","inlineStyle":false,"inlineTemplate":false,"prefix":"javascript-universal","skipTests":false,"style":"@emotion/styled","enableIvy":false,"routing":false,"skipInstall":true,"skipPackageJson":false}
Errors:
Data path ".style" should be equal to one of the allowed values.
Workspace creation failed, see above.
(node:6190) UnhandledPromiseRejectionWarning: Error: Command failed: "/tmp/tmp-6190GeNqZTaNowpf/node_modules/.bin/ng" new javascript-universal --preset="angular-nest" --appName="js-backend" --style="@emotion/styled" --collection=@nrwl/workspace
at checkExecSyncError (child_process.js:621:11)
at Object.execSync (child_process.js:657:15)
at createApp (/home/linken/.npm/_npx/6190/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:345:21)
at /home/linken/.npm/_npx/6190/lib/node_modules/create-nx-workspace/bin/create-nx-workspace.js:64:21
at processTicksAndRejections (internal/process/task_queues.js:93:5)
(node:6190) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:6190) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Cannot serve angular application in newly generated nx ...
I wanted to try out NX but i cannot build-run the angular app. Commands i used: npx create-nx-workspace --preset=angular-nest.
Read more >Introduction to Nx Monorepo Workspace — Code Sharing ...
Nx monorepo management tool is created by former Googlers and Angular team members, which supports Angular, React, NestJS, and Node.js currently. It's friendly ......
Read more >Angular and Nest - Best way to setup Project Using NX
... You can create a workspace using an NX cli we're just one command and you can also choose a template for angular...
Read more >create-nx-workspace - npm
Smart, Fast and Extensible Build System. Latest version: 15.4.1, last published: 2 days ago. Start using create-nx-workspace in your project ...
Read more >nrwl-nx/community - Gitter
import * as _ from "lodash"; ^^^^^^ SyntaxError: Cannot use import ... What to create in the new workspace angular-nest [a workspace with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll mark this as duplicate and close. Thanks @mehrad-rafigh, I hadn’t seen the other issue.
Hi @beckend @jdpearce I filed an issue. You can follow it here. This would be quite easy to fix and @vsavkin added the community flag to it. I thought someone might grab it, because its a perfect fit for first time contribution towards NX.