Skip to content

app works in "dev" but doesn't work in "preview" #3370

Description

@jaroslaw-weber

Describe the bug

I get this error when clicking "see sample" button:

Uncaught TypeError: ({default:function ht(t){var n=ft(t.split(at));return n=mt(n),n.map(pt)}, [Symbol.toStringTag]:"Module"}) is not a function

Reproduction

https://github.com/jaroslaw-weber/frequency-flashcards

npm run dev

Then click "see sample" and it works correctly.

npm run preview

Then click "see sample" and it doesn't work and display error in the console

Logs

Uncaught TypeError: ({default:function ht(t){var n=ft(t.split(at));return n=mt(n),n.map(pt)}, [Symbol.toStringTag]:"Module"}) is not a function

System Info

System:
    OS: Windows 10 10.0.19043
    CPU: (4) x64 AMD Ryzen 3 3200G with Radeon Vega Graphics
    Memory: 5.90 GB / 15.95 GB
  Binaries:
    Node: 16.13.2 - C:\Program Files\nodejs\node.EXE
    npm: 8.1.2 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.19041.1266.0), Chromium (97.0.1072.62)
    Internet Explorer: 11.0.19041.1202

Severity

blocking all usage of SvelteKit

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions