Couldn't load app
I'm getting this error when trying to build the app.
Using npm run build.
vinxi v0.5.3
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './config' is not defined by "exports" in /mypath/node_modules/@tanstack/react-start/package.json imported from /mypath/app.config.timestamp_1749937978770.js
at exportsNotFound (node:internal/modules/esm/resolve:303:10)
at packageExportsResolve (node:internal/modules/esm/resolve:650:9)
at packageResolve (node:internal/modules/esm/resolve:836:14)
at moduleResolve (node:internal/modules/esm/resolve:910:20)
at defaultResolve (node:internal/modules/esm/resolve:1130:11)
at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
at link (node:internal/modules/esm/module_job:84:36) {
code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}
ERROR Couldn't load app

10 Replies
fascinating-indigo•3mo ago
you seem to have installed the latest version which is not based on vinxi anymore
fascinating-indigo•3mo ago
migration instructions are here: https://github.com/TanStack/router/discussions/2863#discussioncomment-13104960
GitHub
Start BETA - Tracking · TanStack router · Discussion #2863
Tracking any important changes for TanStack Start during the BETA period. If you are coming from the ALPHA of TanStack Start, you can see all the breaking changes that were made here - #2403
overseas-lavenderOP•3mo ago
thx! Im trying right now and then I will come back here to relate.
fascinating-indigo•3mo ago
please be aware that clerk integration has not been updated to that newest version / and we still have some issue on our side
fascinating-indigo•3mo ago
GitHub
Start: SSR context loss due to dependency externalization · Issue ...
Which project does this relate to? Start Describe the bug Packages installed in node_modules rely on sharing a server context with the main application, such as using AsyncLocalStorage for request-...
overseas-lavenderOP•3mo ago
ohh ive finished the migration steps and now I'm stuck exactly at this issue... for now, its better to keep using the oldest version? is there any guide on how to "rollback"?
my app uses Clerk
fascinating-indigo•3mo ago
rollback = git revert?
overseas-lavenderOP•3mo ago
I've updated some packages before initializing git.. now I don't know which one was and the oldest version of git is already not working.
fascinating-indigo•3mo ago
and after revert, pin the versions using this
oh
1.120.x is before that migration
overseas-lavenderOP•3mo ago
thx! this should work
it worked, thanks a lot!