GithubHelp home page GithubHelp logo

Persistant error after HTTP 500 status: `getFlash options can only be set once, at a top-level component` about sveltekit-flash-message HOT 5 CLOSED

siccovansas avatar siccovansas commented on May 29, 2024
Persistant error after HTTP 500 status: `getFlash options can only be set once, at a top-level component`

from sveltekit-flash-message.

Comments (5)

siccovansas avatar siccovansas commented on May 29, 2024 1

Version 2.3.1 (commit 901a988) indeed fixes this issue! Thanks @ciscoheat 🎉🙏!

from sveltekit-flash-message.

ciscoheat avatar ciscoheat commented on May 29, 2024

Hi, thank you for the test case, unfortunately when I add /testpage to the url, Vite crashes with this error:

Error: `line` must be greater than 0 (lines start at line 1)
    at originalPositionFor$1 (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:10341:19)
    at eval (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:50359:25)
    at eval (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:50350:21)
    at ssrRewriteStacktrace (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:50349:10)
    at ssrFixStacktrace (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:50402:24)
    at Object.ssrFixStacktrace (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/vite/dist/node/chunks/dep-R0I0XnyH.js:60086:13)
    at fix_stack_trace (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:271:8)
    at eval (/home/projects/sveltejs-kit-template-default-f28ajv/node_modules/@sveltejs/kit/src/exports/vite/dev/index.js:539:13)

from sveltekit-flash-message.

siccovansas avatar siccovansas commented on May 29, 2024

Thanks for trying it out!

Apparently the Vite crash happens when I use Chrome/Chromium. I have no idea why, but the error is probably related to my issue?

My error happens when I use Firefox. Can you try it again using Firefox?

from sveltekit-flash-message.

ciscoheat avatar ciscoheat commented on May 29, 2024

I don't think it's a browser issue related to the library. It works locally in Chrome, and hopefully it will be fixed in the next release.

from sveltekit-flash-message.

ciscoheat avatar ciscoheat commented on May 29, 2024

See if this is fixed now with version 2.3.1.

from sveltekit-flash-message.

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.