Giter VIP home page Giter VIP logo

Comments (10)

chainlist avatar chainlist commented on May 26, 2024 1

Issue has been fixed in the latest version 2.0.11.

Thanks for your precious help, it saved me a lot of investigation time! Much appreciated!

from svelte-forms.

chainlist avatar chainlist commented on May 26, 2024

Hi @Jakeii,

Indeed there is an error. I am on it.
I wonder why it stops working with SSR all of a sudden tho'

from svelte-forms.

Jakeii avatar Jakeii commented on May 26, 2024

Hi @Jakeii,

Indeed there is an error. I am on it. I wonder why it stops working with SSR all of a sudden tho'

Changing all imports to include the file extensions seemed to fix it, not sure why, or if it breaks anything else though.

from svelte-forms.

chainlist avatar chainlist commented on May 26, 2024

Why do you mean by "to include the file extensions"?

That might be a error caused by a change in how vite resolve its dependencies.

from svelte-forms.

Jakeii avatar Jakeii commented on May 26, 2024

Why do you mean by "to include the file extensions"?

That might be a error caused by a change in how vite resolve its dependencies.

Inside the svelte-forms module I changed all imports to include '.js' and it fixed the issue.

from svelte-forms.

chainlist avatar chainlist commented on May 26, 2024

That's interesting!

Thanks for your feedback

from svelte-forms.

Jakeii avatar Jakeii commented on May 26, 2024

hey again @chainlist, have dug into this a bit. So I think svelte-forms should be including the '.js' according to the ES6 import spec. I think the reason it was working before was because vite was using commonjs to load ssr modules. It broke in 2.7.0 when vitejs/vite#5197 added native support for 'import' for ssr.

from svelte-forms.

chainlist avatar chainlist commented on May 26, 2024

Thanks for you digging!

I'm on it!

Tests need fixing with the new imports, but a new version is going to get released soon

from svelte-forms.

hsb-tonmoy avatar hsb-tonmoy commented on May 26, 2024

I'm still having this issue, with the latest version. Any idea why? #55

from svelte-forms.

xcorat avatar xcorat commented on May 26, 2024

Same... It comes up only when I refresh the page. The first load with the form works, but if I refresh the browser, it throws an error.. any suggestions?

from svelte-forms.

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.