Comments (7)
Solution: Restart your dev server
This issue happens only after sveltekit-superforms
is installed and the vite server has not been reloaded.
- npm i -D sveltekit-superforms zod
- Create +page.server.js
- import { superValidate } from 'sveltekit-superforms/server'
Then the following error appears.
Internal server error: No known conditions for "./server" entry in "sveltekit-superforms" package
It seems the package entry is not updated on install...
from sveltekit-superforms.
Hi, I've never encountered that error before, and cannot find much about it online either...! Are you using the latest versions of everything (Node 18+, SvelteKit, this library, etc?) I have tested it today and it works, so I'm not sure what this is about. Can you post your package.json
?
from sveltekit-superforms.
Here's what was out-of-date:
@skeletonlabs/skeleton ^0.124.2 → ^0.132.5
@sveltejs/kit ^1.7.2 → ^1.8.4
@typescript-eslint/eslint-plugin ^5.52.0 → ^5.53.0
@typescript-eslint/parser ^5.52.0 → ^5.53.0
svelte-check ^3.0.3 → ^3.0.4
vite ^4.1.2 → ^4.1.4
vitest ^0.28.5 → ^0.29.1
Here's full dependencies:
{
"@skeletonlabs/skeleton": "^0.132.5",
"@sveltejs/adapter-auto": "^2.0.0",
"@sveltejs/kit": "^1.8.4",
"@tailwindcss/forms": "^0.5.3",
"@tailwindcss/typography": "^0.5.9",
"@types/eslint": "^8.21.1",
"@types/lodash-es": "^4.17.6",
"@types/prettier": "^2.7.2",
"@typescript-eslint/eslint-plugin": "^5.53.0",
"@typescript-eslint/parser": "^5.53.0",
"autoprefixer": "^10.4.13",
"eslint": "^8.34.0",
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-svelte3": "^4.0.0",
"firebase": "^9.17.1",
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"prettier-plugin-svelte": "^2.9.0",
"svelte": "^3.55.1",
"svelte-check": "^3.0.4",
"svelte-icons": "^2.1.0",
"svelte-preprocess": "^5.0.1",
"sveltefire": "^0.2.3",
"tailwindcss": "^3.2.7",
"tslib": "^2.5.0",
"typescript": "^4.9.5",
"vite": "^4.1.4",
"vitest": "^0.29.1",
"dayjs": "^1.11.7",
"lodash-es": "^4.17.21",
"neverthrow": "^6.0.0",
"sveltekit-superforms": "^0.5.8",
"zod": "^3.20.6"
}
from sveltekit-superforms.
Sorry, I cannot reproduce this. Version 0.5.11 has just been released, can you update and see if it fixes it?
from sveltekit-superforms.
I had the same issue but found that running svelte-kit sync and restarting the vite dev server fixed it (not sure which did it actually)
from sveltekit-superforms.
Thanks @lnfel, this can probably be closed now.
from sveltekit-superforms.
Thank you, restarting server did help!
from sveltekit-superforms.
Related Issues (20)
- Issue with nested data custom validation. An error is thrown when the path is not explicitly passed. HOT 4
- Support new Valibot piping? HOT 22
- SuperDebug CSS is included in SSR-only production build HOT 5
- Custom fetch/XMLHttpRequest when submitting (was: how to implement progress bar for file uploading) HOT 6
- numberProxy, stringProxy don't restore with snapshot restore
- Unexpected bug during schema validation (jsonschema schemasafe adapter) HOT 1
- Submitting without tainting a field doesn't show errors if cancel is called HOT 3
- Use `customValidity` with `_errors` HOT 2
- typia support HOT 5
- Cannot use `z.array()` as first-level schema HOT 1
- Types have separate declarations of a private property '_cached'. HOT 2
- Submitting form with disabled field does not send field value HOT 2
- Returning an empty form data when uploading some file HOT 1
- Handling `Record<string, string>` Input with Superforms HOT 2
- Snapshots with multiple forms HOT 1
- DeepPartial Objects for SuperValidate HOT 2
- Putting dataType: 'json' to enable nested data in a enctype="multipart/form-data" always return value from input type="file" undefined HOT 2
- Conditional fields validation and default values HOT 2
- Unsupported valibot schema: file HOT 9
- How to construct a schema dynamically? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sveltekit-superforms.