Comments (6)
Same issue here. I didn't investigate why exactly but it is related to:
- Upgrade to Nx 19
- Plugin inference activated
- Windows environments only
- Server app only
from nx.
Similar when running my main Expo app. Tested in Nx 19 macos
Storybook is in its own standalone React Native app. Storybook packages v7.6.10 and v7.6.15 for @storybook/react-native
.
Nx docs https://nx.dev/recipes/storybook/custom-builder-configs#and are outdated, framework
field doesn't exist in StorybookConfig
.
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)
from nx.
I fixed my problem.
My error was a bit different:
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:
const projectRoot = normalizePath(join(dirname(configFilePath), '..'));
from nx.
blocked by the same issue: The projects in the following directories have no name provided:
in Mac
how to solve this ?
from nx.
blocked by the same issue:
The projects in the following directories have no name provided:
in Machow to solve this ?
answer
in nx apps/folder, a react project's there is a lib sub-folder in public folder , but it's package.json file has no name
filed , this is the root cause.
from nx.
Make sure your project.json has something inside {"name": ' "}
and run nx reset
from nx.
Related Issues (20)
- Denial of Service (DoS) vulnerability introduced by a nested dependency (WS) of @nx/angular HOT 1
- Failure to resolve baseUrl in next.js library's component-test executor HOT 1
- React reverse proxy configuration is not working and throwing errors on start
- Prettierignore is ignored when migrating from an Angular repo to Nx Repo HOT 1
- Build failing with updateBuildableProjectDepsInPackageJson is not found in schema HOT 2
- Updating a namedInput in nx.json causes unrelated caches to become invalidated
- NX Remix (Vite) Plugin creates vitest.config.ts instead of vite.config.ts HOT 2
- bug "nx init" script on Windows HOT 1
- esbuild version conflict in NX Angular project when running in production mode HOT 7
- Build Failing for React App with one JS Library
- Cypress component testing with Angular results in SassError
- Wrong project graph when using target defaults HOT 2
- The built library does not include assets correctly in nx project?
- When upgrading to Nx 18.0.0 - Cannot figure out your version of React Native HOT 2
- Proxies for dynamic remotes do not support SSL
- nx/Angular: removeWindowsDriveLetter used in reading file provided in option IndexHtmlTransformer HOT 2
- Failed nx run mobile:build-android Command HOT 3
- Nx 19.5 cannot find projects after initial creation HOT 1
- @nx/expo:export outputDir vs output-dir HOT 1
- Since Nx 19.4, @nx/vite/plugin dosn't generate serve target even if there is an eplicit server target in the vite config
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nx.