app works in "dev" but doesn't work in "preview" #3372
Answered
by
benmccann
jaroslaw-weber
asked this question in
Q&A
-
Describe the bugI get this error when clicking "see sample" button:
Reproductionhttps://github.com/jaroslaw-weber/frequency-flashcards
Then click "see sample" and it works correctly.
Then click "see sample" and it doesn't work and display error in the console LogsUncaught 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 InfoSystem:
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 Severityblocking all usage of SvelteKit Additional InformationNo response |
Beta Was this translation helpful? Give feedback.
Answered by
benmccann
Jan 16, 2022
Replies: 1 comment 3 replies
-
Don't minify it so you can get a better stack trace:
Then you'll see:
You need to change your import to:
|
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
benmccann
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't minify it so you can get a better stack trace:
Then you'll see: