Thanks for making these templates. I noticed after switching the sapper template to typescript with node scripts/setupTypeScriptRollup.js,Tailwind stopped working. The TS script creates some conflicts in rollup.config.js. They are easy to fix though.
remove the extra sveltePreprocess import
in both client and server, in the svelte() call, remove the extra preprocess: sveltePreprocess() lines that got added
I am brand new to Svelte, so might have something wrong, but this seemed to both get me TypeScript and Tailwind.
Thank you Matt! I've noticed this issue. scripts/setupTypeScriptRollup.js does not check if there is an existing sveltePreprocess. So it results with a silent failure. Your fix is correct. I am going to examine the script deeper to find a solution.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for making these templates. I noticed after switching the sapper template to typescript with
node scripts/setupTypeScriptRollup.js,Tailwind stopped working. The TS script creates some conflicts in rollup.config.js. They are easy to fix though.preprocess: sveltePreprocess()lines that got addedI am brand new to Svelte, so might have something wrong, but this seemed to both get me TypeScript and Tailwind.
Thank you Matt! I've noticed this issue.
scripts/setupTypeScriptRollup.jsdoes not check if there is an existingsveltePreprocess. So it results with a silent failure. Your fix is correct. I am going to examine the script deeper to find a solution.