Skip to content

Error after initial setup #978

@PabloCorso

Description

@PabloCorso

I'am experiencing an error after the initial setup. The solution I found was to install react-router-dom. Has anyone seen this?

Steps:

  1. Create project
> npx create-epic-app@latest

? Would you like to set up deployment right now? No
  1. Run project (error)
> npm run dev

> predev
> npm run build:icons --silent

> dev
> cross-env NODE_ENV=development MOCKS=true node ./server/dev-server.js

Debugger listening on ws://127.0.0.1:9229/5ef1d031-f79c-4082-a492-8f659862c347
For help, see: https://nodejs.org/en/docs/inspector
🔶 Mock server installed
🚀  We have liftoff!
Local:            http://localhost:3000
On Your Network:  http://172.20.10.3:3000
Press Ctrl+C to stop
✘ [ERROR] No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_logV6DeprecationWarnings"

    ../../../node_modules/react-router-dom/dist/index.js:13:36:
      13 │ ...outeProperties, UNSAFE_logV6DeprecationWarnings, UNSAFE_DataRou...
         ╵                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRoutesImpl"

    ../../../node_modules/react-router-dom/dist/index.js:13:134:
      13 │ ...StateContext, Router, UNSAFE_useRoutesImpl, UNSAFE_NavigationCo...
         ╵                          ~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRouteId"

    ../../../node_modules/react-router-dom/dist/index.js:13:246:
      13 │ ...eNavigate, createPath, UNSAFE_useRouteId, UNSAFE_RouteContext, ...
         ╵                           ~~~~~~~~~~~~~~~~~

✘ [ERROR] No matching export in "node_modules/react-router/dist/development/index.mjs" for import "AbortedDeferredError"

    ../../../node_modules/react-router-dom/dist/index.js:14:9:
      14 │ export { AbortedDeferredError, Await, MemoryRouter, Navigate, Navi...
         ╵          ~~~~~~~~~~~~~~~~~~~~

✘ [ERROR] No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRouteId"

    ../../../node_modules/react-router-dom/dist/index.js:14:237:
      14 │ ..., UNSAFE_RouteContext, UNSAFE_useRouteId, createMemoryRouter, c...
         ╵                           ~~~~~~~~~~~~~~~~~

✘ [ERROR] No matching export in "node_modules/react-router/dist/development/index.mjs" for import "defer"

    ../../../node_modules/react-router-dom/dist/index.js:14:340:
      14 │ ...n, createRoutesFromElements, defer, generatePath, isRouteErrorR...
         ╵                                 ~~~~~

✘ [ERROR] No matching export in "node_modules/react-router/dist/development/index.mjs" for import "json"

    ../../../node_modules/react-router-dom/dist/index.js:14:383:
      14 │ ...tePath, isRouteErrorResponse, json, matchPath, matchRoutes, par...
         ╵                                  ~~~~

Error: Build failed with 7 errors:
../../../node_modules/react-router-dom/dist/index.js:13:36: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_logV6DeprecationWarnings"
../../../node_modules/react-router-dom/dist/index.js:13:134: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRoutesImpl"
../../../node_modules/react-router-dom/dist/index.js:13:246: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRouteId"
../../../node_modules/react-router-dom/dist/index.js:14:9: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "AbortedDeferredError"
../../../node_modules/react-router-dom/dist/index.js:14:237: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRouteId"
...
Error: Build failed with 7 errors:
../../../node_modules/react-router-dom/dist/index.js:13:36: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_logV6DeprecationWarnings"
../../../node_modules/react-router-dom/dist/index.js:13:134: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRoutesImpl"
../../../node_modules/react-router-dom/dist/index.js:13:246: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRouteId"
../../../node_modules/react-router-dom/dist/index.js:14:9: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "AbortedDeferredError"
../../../node_modules/react-router-dom/dist/index.js:14:237: ERROR: No matching export in "node_modules/react-router/dist/development/index.mjs" for import "UNSAFE_useRouteId"
...
    at failureErrorWithLog (/epic-stack-2025-04-02-b/node_modules/esbuild/lib/main.js:1477:15)
    at /epic-stack-2025-04-02-b/node_modules/esbuild/lib/main.js:946:25
    at /epic-stack-2025-04-02-b/node_modules/esbuild/lib/main.js:1355:9
    at processTicksAndRejections (node:internal/process/task_queues:105:5)
  1. Install react-router-dom
  1. Run project (no error)
> npm run dev

> predev
> npm run build:icons --silent


> dev
> cross-env NODE_ENV=development MOCKS=true node ./server/dev-server.js

Debugger listening on ws://127.0.0.1:9229/24085441-a916-434b-b046-91488283b01c
For help, see: https://nodejs.org/en/docs/inspector
🔶 Mock server installed
🚀  We have liftoff!
Local:            http://localhost:3000
On Your Network:  http://172.20.10.3:3000
Press Ctrl+C to stop

Node version: v22.14.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions