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,
Thank you for reporting your findings. We will look into this and get back to you.
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
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