Skip to content

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

Answered by benmccann
jaroslaw-weber asked this question in Q&A
Discussion options

You must be logged in to vote

Don't minify it so you can get a better stack trace:

		vite: {
			build: {
				minify: false
			}
		}

Then you'll see:

index.svelte-859506ae.js:1079 Uncaught TypeError: splitToWords is not a function
    at getFrequencyList (index.svelte-859506ae.js:1079:19)
    at onClickProcess (index.svelte-859506ae.js:1063:33)
    at HTMLButtonElement.onClickTrySample (index.svelte-859506ae.js:1075:5)
    at vendor-a62b000f.js:328:42
    at Array.forEach (<anonymous>)
    at HTMLButtonElement.bubble (vendor-a62b000f.js:328:23)
    at HTMLButtonElement.click_handler (index.svelte-859506ae.js:397:12)
    at vendor-a62b000f.js:328:42
    at Array.forEach (<anonymous>)
    at HTMLButtonElement.bubble (ve…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jaroslaw-weber
Comment options

@jaroslaw-weber
Comment options

@benmccann
Comment options

Answer selected by benmccann
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #3370 on January 16, 2022 14:58.