npm run build:dev always failed after npm ci with the error “Could not resolve ‘react’”.It appears that the project cannot be built when it resides in
~/.nrfconnect-apps/local, at least on my system (Windows 11 + Node.js v24.5.0).
npm run build:dev always failed after npm ci with the error “Could not resolve ‘react’”.~/.nrfconnect-apps/local, at least on my system (Windows 11 + Node.js v24.5.0).Hi Glaze, and sorry about the wait. My coworker here is currently OOO, so I'll take over this case.
for nRF Connect for desktop to see the application is must be in ~/.nrfconnect-apps/local, and npm ci and npm run build:dev must be done in the cloned folder so ~/.nrfconnect-apps/local/<app>
Could you try using node 22? That is what we are using in our workflows.
Regards,
Elfving
Hi Elfving, I just tried under Node.js v22.19.0, however the same issue, see below screenshot:

I forwarded this to the team, and they are not able to reproduce this, neither on macOS nor on Win11.
Is the react module installed in node_modules\react after running npm ci? Does npm ls react show it?
Regards,
Elfving
I forwarded this to the team, and they are not able to reproduce this, neither on macOS nor on Win11.
Is the react module installed in node_modules\react after running npm ci? Does npm ls react show it?
Regards,
Elfving
Yes, react folders are under folder node_modules, and npm ls react shows:
C:\Users\myname\.nrfconnect-apps\local\pc-nrfconnect-myapp>npm ls react
[email protected] C:\Users\myname\.nrfconnect-apps\local\pc-nrfconnect-myapp
+-- @nordicsemiconductor/[email protected]
| +-- @reduxjs/[email protected]
| | `-- [email protected] deduped
| +-- @testing-library/[email protected]
| | `-- [email protected] deduped
| +-- [email protected]
| | +-- @restart/[email protected]
| | | `-- [email protected] deduped
| | +-- @restart/[email protected]
| | | `-- [email protected] deduped
| | +-- [email protected]
| | | `-- [email protected] deduped
| | +-- [email protected]
| | | `-- [email protected] deduped
| | +-- [email protected]
| | | `-- [email protected] deduped
| | +-- [email protected] deduped
| | `-- [email protected]
| | `-- [email protected] deduped
| +-- [email protected]
| | `-- [email protected] deduped
| +-- [email protected]
| | `-- [email protected] deduped
| +-- [email protected]
| | `-- [email protected] deduped
| +-- [email protected]
| | `-- [email protected] deduped
| +-- [email protected]
| | `-- [email protected] deduped
| `-- [email protected]
`-- [email protected]
+-- [email protected]
| `-- [email protected] deduped
`-- [email protected] deduped
They are, strangely enough, unable to reproduce this still.
Could you try cloning the repo at a different location than $USERPROFILE/.nrfconnect-apps/local and see whether it building it works there?
Regards,
Elfving