----frontendProject param doesn't work as expected #23158
Labels
scope: node
Issues related to Node, Express, NestJS support for Nx
scope: react
Issues related to React support for Nx
type: bug
Current Behavior
Trying to specify frontend project to backen't project with --frontendProject param which suppose to create proxy as described in documentation here https://nx.dev/recipes/node/application-proxies
But no proxy file is created and api requests from frontend part are not proxied to backend part
Expected Behavior
--frontendProject should work as declared in documentation here - https://nx.dev/recipes/node/application-proxies
GitHub Repo
No response
Steps to Reproduce
To reproduce I running these commands:
Choosen options:
Choosen options:
my-org/apps/site/src/app/app.tsx
:8. Running apps:
Nx Report
Failure Logs
No response
Package Manager Version
yarn - 1.22.22
Operating System
Additional Information
After some research I found that project.json for frontend part(site) looks like this:
"targets" is empty onject
And after some debugging I found that code which is responsible for proxy file creation
nx/packages/node/src/generators/application/application.ts
Line 246 in dbad02a
Checks if
serve
target exists.The text was updated successfully, but these errors were encountered: