Fix a bug introduced in #30087 #### Current Behavior The `@nx/js` plugins throw an error when the project is served in the project root but not in the workspace root. #### Expected Behavior Ensure that `nx run $project:serve` works correctly both in the workspace root and the project root, restoring the previous behavior. #### Related Issue(s) Fixes #30087
{{links}}
Nx: Smart Monorepos · Fast CI
Nx is a build system, optimized for monorepos, with plugins for popular frameworks and tools and advanced CI capabilities including caching and distribution.
This package is a JavaScript/TypeScript plugin for Nx.
{{content}}