You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After making a build for a Next.js app inside a dockerfile and then afterwards running a command to generate a siemap via next-sitemap i get the following error ProjectsWithNoNameError: The projects in the following directories have no name provided:.
I looked inside the dist folder and there is a package.json file generated in both folders:
yarn exec nx run expo:start
node:internal/process/promises:289
triggerUncaughtException(err, true /* fromPromise */);
^
[Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
The "@nx/storybook/plugin" plugin threw an error while creating nodes from apps/storybook-rn/.storybook/main.ts:
TypeError: Cannot read properties of undefined (reading 'name')
at getStorybookFramework (/Users/guillem/programacio/codi/cites/nx-expo-next-tamagui/node_modules/@nx/storybook/src/plugins/plugin.js:170:66)
at buildStorybookTargets (/Users/guillem/programacio/codi/cites/nx-expo-next-tamagui/node_modules/@nx/storybook/src/plugins/plugin.js:68:32)
at Array.exports.createNodes (/Users/guillem/programacio/codi/cites/nx-expo-next-tamagui/node_modules/@nx/storybook/src/plugins/plugin.js:53:32)
at /Users/guillem/programacio/codi/cites/nx-expo-next-tamagui/node_modules/nx/src/project-graph/plugins/utils.js:49:27
at async Promise.all (index 0)
Failed to process project graph. Run "nx reset" to fix this. Please report the issue if you keep seeing it.
ProjectsWithNoNameError: The projects in the following directories have no name provided:
- apps\my-app-one
- apps\my-app-two
- apps\my-app-three
- ...
All of the apps above were related to a specific Nx plugin using target inference.
Nx can inject targets into a project configuration by comparing the projectRoot computed with the projectRoot from the list of existing projects .
However, the projectRoot computed can be different between a Windows environment and a Unix environment.
This is why Nx created the utility normalizePath to avoid that use case:
Current Behavior
After making a build for a Next.js app inside a dockerfile and then afterwards running a command to generate a siemap via
next-sitemap
i get the following errorProjectsWithNoNameError: The projects in the following directories have no name provided:
.I looked inside the dist folder and there is a
package.json
file generated in both folders:When i manually remove this
package.json
files and run the command again it will succeed. I guess these files don't have a name prop which nx expects?Expected Behavior
It's possible to run all commands without removing package.json files. I think this issue could be related to #20959.
GitHub Repo
No response
Steps to Reproduce
As my project is a private repo i can't share the source code.
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
No response
The text was updated successfully, but these errors were encountered: