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

Error: Could not read package.json - Monorepo Project #48

Closed
shantanu-deshmukh opened this issue Oct 24, 2019 · 1 comment
Closed

Error: Could not read package.json - Monorepo Project #48

shantanu-deshmukh opened this issue Oct 24, 2019 · 1 comment

Comments

@shantanu-deshmukh
Copy link

I'm submitting a...


[ ] Regression 
[*] Bug report
[ ] Feature request
[ ] Documentation issue or request
[ ] Support request => Please do not submit support request here, instead post your question on Stack Overflow.

Current behavior

When I try to install NestJS Azure functions schematics to any app in a monorepo created using the cli, I get the following error:

nestjsissue

Expected behavior

Should create main.azure.ts and other files as shown here.

Minimal reproduction of the problem with instructions

  • Generate a new project, select yarn as the package manager
    nest new my-app
  • Goto project root and convert it to a mono repo
    cd micro2
    nest generate app micro2
  • Add @nestjs/azure-func-http to any app
    cd apps\micro2
    nest add @nestjs/azure-func-http

What is the motivation / use case for changing the behavior?

Building and deploy multiple azure functions from a single monorepo.

Environment


Nest version: 6.7.2

 
For Tooling issues:
- Node version: 10.17.0  
- Platform:  Windows 

Others:

@kamilmysliwiec
Copy link
Member

nest add doesn't work properly within a monorepo yet. We're working on this here nestjs/nest-cli#415

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants