This blog is pretty outdated and I've created an updated one here. Svelte ecosystem has matured a lot that, we really don't have to do a lot of co...
For further actions, you may consider blocking this person and/or reporting abuse
Anyone else getting "Uncaught SyntaxError: Unexpected token '<'" when trying to launch the Svelte app? I followed the instructions to a T and can see Storybook is working fine, but both the bundle.css and bundle.js are outputting the app's html.
Did you try running the code in the repo? Also can you share the error details?
Hi Jerric :) I decided to start over and the 2nd time round everything is working fine. Not sure where I went wrong before.
On an unrelated note, what would be the best way to add Sapper to the project? All the examples I've seen recommend starting with the Sapper template, but not anything about adding to existing templates.
TIA!
It can be done, but trust me going the template way is the best, you'll have to deal with both server side and client side dependencies. It's faster and straightforward with the template.
If you wanna add tailwind, just make sure you add the preprocess in both client and server side in the rollup config. To add story book it's the same process as mentioned in the blog here.
thanks, now i know to stay away from Svelte
I'm sure you'll be fine!!!
What's your problem with Svelte? Literally only one of the code blocks is svelte.. all the rest is the necessary config for storybook. If anything, you should be apprehensive of storybook.
Whats the best way to strip out the storybook stuff?
Wow, clone and installing gives
added 1417 packages from 1016 contributors and audited 30544 packages in 110.012s
Thanks Volmancer! I ended up rebuilding the project from scratch and everything is working second time round. Gotta love dev!
That's wierd, I'll check it out myself on a fresh instance.
This works pretty much without doing this as well! Must be system specific.