Skip to content

exercises that are broken #282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 task
Rich-Harris opened this issue Mar 21, 2023 · 7 comments
Closed
1 task

exercises that are broken #282

Rich-Harris opened this issue Mar 21, 2023 · 7 comments

Comments

@Rich-Harris
Copy link
Member

starting a list:

  • context API
@marksteven
Copy link

Hi Rich,
Not sure if it is me but think this exercise (for me at least) appears broken.
https://learn.svelte.dev/tutorial/params
Add [blog] and then attempt to add +page.svelte and throws error.
Hope that helps.
Great tutorial by the way

@Rich-Harris
Copy link
Member Author

What error is being thrown? Are you creating [slug] as a file rather than a directory? If so, we should catch that and prevent the file from being created

@Rich-Harris Rich-Harris mentioned this issue Mar 22, 2023
46 tasks
@marksteven
Copy link

Thanks for getting back to me.
Using the "solve" I could see what it was supposed to be but how I did it threw errors.
clicking after fresh reload on blog you are given 2 options folder and page.
I clicked on folder and made [slug] folder then attempted to navigate in and then make +page.svelte which of course threw error as site tried to make one one folder up where there was one already.

Finally worked out what is meant to happen is start on blog
click on new folder and type in one line
[slug]/+page.svelte
enter and it works by adding a folder and file
But its not so obvious that is what you have to do.
I usually make a folder first navigate into it and then make a file so guessing others do the same.
So not sure how to explain it better than you already have.
But you might have some ideas.
Hope this helps you.
Cheers
Mark

@Rich-Harris
Copy link
Member Author

Can you make a screen recording? Because this works fine:

Screen.Recording.2023-03-23.at.11.03.31.AM.mov

@Rich-Harris
Copy link
Member Author

Are you creating [slug] as a file rather than a directory?

If it's this, the error will be caught by #296:

https://learn-svelte-dev-git-disallow-file-as-directory-svelte.vercel.app/tutorial/params

@marksteven
Copy link

Screen Shot 2023-03-23 at 22 04 45
Have attempted to replicate the error to make you a video but now cannot as it does exactly as your video does and if you do it wrong, even on purpose, you get the correct error messages. So I am now not sure how I broke it. Sorry to waste your time.

@Rich-Harris
Copy link
Member Author

cool — have merged #296, and this issue is covered by #293 so i'll close this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants