-
-
Notifications
You must be signed in to change notification settings - Fork 598
Open
Description
Describe the bug
This was introduced in the latest version
Export createStore doesn't exist in target module
> 1 | import { batch, createStore } from "@tanstack/store";
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2 | import { standardSchemaValidators, isStandardSchemaValidator } from "./standardSchemaValidator.js";
3 | import { defaultFieldMeta } from "./metaHelper.js";
4 | import { evaluate, mergeOpts, getSyncValidatorArray, getAsyncValidatorArray, determineFieldLevelErrorSourceAndValue } from "./utils.js";
The export createStore was not found in module [project]/node_modules/@tanstack/form-core/node_modules/@tanstack/store/dist/esm/index.js [app-client] (ecmascript).
Did you mean to import __derivedToStore?
All exports of the module are statically known (It doesn't have dynamic exports). So it's known statically that the requested export doesn't exist.
Import traces:
Client Component Browser:
./node_modules/@tanstack/form-core/dist/esm/FieldApi.js [Client Component Browser]
./node_modules/@tanstack/react-form/dist/esm/useField.js [Client Component Browser]
./node_modules/@tanstack/react-form/dist/esm/useForm.js [Client Component Browser]
./apps/nextjs/components/ai/prompt-input.tsx [Client Component Browser]
./apps/nextjs/app/(app)/contabilidad/comprobacion/ver/chat.tsx [Client Component Browser]
./apps/nextjs/app/(app)/contabilidad/resultados/ver/heading.tsx [Client Component Browser]
./apps/nextjs/app/(app)/contabilidad/resultados/ver/heading.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/resultados/ver/pagev2.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/periodos/actionv2.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/comprobantes/action.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/comprobantes/editar/[id]/action.tsx [Server Component]
Client Component SSR:
./node_modules/@tanstack/form-core/dist/esm/FieldApi.js [Client Component SSR]
./node_modules/@tanstack/react-form/dist/esm/useField.js [Client Component SSR]
./node_modules/@tanstack/react-form/dist/esm/useForm.js [Client Component SSR]
./apps/nextjs/components/ai/prompt-input.tsx [Client Component SSR]
./apps/nextjs/app/(app)/contabilidad/comprobacion/ver/chat.tsx [Client Component SSR]
./apps/nextjs/app/(app)/contabilidad/resultados/ver/heading.tsx [Client Component SSR]
./apps/nextjs/app/(app)/contabilidad/resultados/ver/heading.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/resultados/ver/pagev2.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/periodos/actionv2.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/comprobantes/action.tsx [Server Component]
./apps/nextjs/app/(app)/contabilidad/comprobantes/editar/[id]/action.tsx [Server Component]
Your minimal, reproducible example
I'll add this later
Steps to reproduce
pnpm devIt doesn't even start the dev server without crashing
Expected behavior
Not to crash
How often does this bug happen?
None
Screenshots or Videos
Platform
Linux
Brave 1.87.191 (Official Build) (64-bit)
Chromium: 145.0.7632.120
TanStack Form adapter
None
TanStack Form version
1.28.4
TypeScript version
v5.9.3
Additional context
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels