Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ENOENT: no such file or directory, open 'C:\Users\Arkasha\Documents\my-project\my-project\project.json' #8778

Closed
Arkady-Skvortsov opened this issue Jan 30, 2022 · 4 comments

Comments

@Arkady-Skvortsov
Copy link

Arkady-Skvortsov commented Jan 30, 2022

Current Behavior

I want to start some operation with @nrwl/nx CLI command, like: `` - generate angular component, and catch that: ; But I don't know why he thinks that I have a some recursion, I mean: my-project folder and (inside my-project folder again!?) and than project.json file;

Expected Behavior

Create an Angular component or some other operation through Nx commands

Environment

Angular, Nest;
nx report: [DEP0148] DeprecationWarning: Use of deprecated folder mapping "./" in the "exports" field module resolution of the package at C:\Users\Аркадий\Documents\secret\node_modules\tslib\package.json.
Update this package.json to use a subpath pattern like "./*".

@FrozenPandaz
Copy link
Collaborator

Hi can you please provide a repo we can pull down to reproduce the issue please?

@Arkady-Skvortsov
Copy link
Author

Arkady-Skvortsov commented Feb 15, 2022

Hi can you please provide a repo we can pull down to reproduce the issue please?

I'm sorry, https://github.com/Arkady-Skvortsov/Adventure-Time-Card-Wars/

@timofeysie
Copy link

I have the same issue with "nx": "14.0.2".
Steps to reproduce:

>npx create-nx-workspace@latest
√ Workspace name (e.g., org name)     · demo-app
√ What to create in the new workspace · core
...
>cd demo-app
>npm install @nrwl/angular
>nx generate @nrwl/angular:app customer-portal --routing
ENOENT: no such file or directory, open 'C:\Users\timof\repos\demo-app\packages\customer-portal\project.json'

Note I don't want to create an Angular specific repo as I will have React apps as well in it.

It looks to me like this issue has been fixed [here[(https://github.com//issues/8707), and here. But the creating a core workspace and Angular app first still fails with the above error.

Note that creating a workspace with a default React app, and then adding an Angular app after that works fine.

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants