Giter VIP home page Giter VIP logo

Comments (7)

lnfel avatar lnfel commented on August 25, 2024 7

Solution: Restart your dev server

This issue happens only after sveltekit-superforms is installed and the vite server has not been reloaded.

  1. npm i -D sveltekit-superforms zod
  2. Create +page.server.js
  3. 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.

ciscoheat avatar ciscoheat commented on August 25, 2024

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.

drmikecrowe avatar drmikecrowe commented on August 25, 2024

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.

ciscoheat avatar ciscoheat commented on August 25, 2024

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.

highergroundstudio avatar highergroundstudio commented on August 25, 2024

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.

ciscoheat avatar ciscoheat commented on August 25, 2024

Thanks @lnfel, this can probably be closed now.

from sveltekit-superforms.

TheKinng96 avatar TheKinng96 commented on August 25, 2024

Thank you, restarting server did help!

from sveltekit-superforms.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.