Open kspr9 opened 8 months ago
Not sure if the next issue is because of the outdated tutorial basing the project on the 'no longer maintained' repo or something else, but this REPL, that is given in the MDN svelte tutorial, does not work and give the below error during loading.
""" "createEventDispatcher" is not exported by "https://unpkg.com/svelte@3.23.2/internal/index.js", imported by "https://unpkg.com/svelte@3.23.2/index.mjs"."""
Hey! Nice catch, thank you :) The guide definitely needs to be updated. But I’m afraid it won’t be enough to point to the npm init vite
since at least a few further sections go through the default project’s structure, which might be different now.
Feel free to give it a go if you have time. Otherwise, let’s see if anyone from MDN’s community is up for the task.
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Svelte_getting_started
What specific section or headline is this issue about?
The tutorial instructs using sveltejs/template, but they state that it is no longer maintained
What information was incorrect, unhelpful, or incomplete?
The tutorial tells the reader to use degit and references the sveltejs/template github repo.
However, on the repo page it is said that: "This repo is no longer maintained. Consider using npm init vite and selecting the svelte option"
sveltejs/template repo
What did you expect to see?
Would be nice if the tutorial would be updated to be used with npm init vite or at least added a comments explaining are the differences and implications using degit vs npm init vite method. This would allow learner to understand their choices going either route...
Do you have any supporting links, references, or citations?
https://github.com/sveltejs/template#this-repo-is-no-longer-maintained-consider-using-npm-init-vite-and-selecting-the-svelte-option-or--if-you-want-a-full-fledged-app-framework--use-sveltekit-the-official-application-framework-for-svelte
Do you have anything more you want to share?
No response
MDN metadata
Page report details
* Folder: `en-us/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started` * MDN URL: https://developer.mozilla.org/en-US/docs/Learn/Tools_and_testing/Client-side_JavaScript_frameworks/Svelte_getting_started * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/learn/tools_and_testing/client-side_javascript_frameworks/svelte_getting_started/index.md * Last commit: https://github.com/mdn/content/commit/e3faa375b0179de77a5eff00074e3d168a0a904c * Document last modified: 2023-10-04T23:23:49.000Z