DEV Community

Discussion on: Setting up Svelte and Tailwind... with minimal extra dependencies

Collapse
 
justingolden21 profile image
Justin Golden

ReferenceError: sveltePreprocess is not defined

Collapse
 
ardc_overflow profile image
Rodolpho Alves • Edited

hmm, this might be due to changes on the latest versions of Svelte. Did you manage to get past this error?

Collapse
 
slgotting profile image
slgotting

Install svelte-preprocess:

npm i -D svelte-preprocess

Then import sveltePreprocess at top of rollup.config.js file:

import sveltePreprocess from 'svelte-preprocess';