Skip to content

fix: not to remove node_modules #204

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

Merged
merged 3 commits into from
Feb 3, 2023
Merged

fix: not to remove node_modules #204

merged 3 commits into from
Feb 3, 2023

Conversation

tomoam
Copy link
Contributor

@tomoam tomoam commented Feb 2, 2023

fix #195

This is due to node_modules being removed when switching tutorials. This only happens when switching from one tutorial with its own node_modules to another.

const to_delete = Array.from(current_stubs.keys());

for (const file of to_delete) {
await vm.fs.rm(file, { force: true, recursive: true });
}

This PR is only an ad-hoc fix, but I submit it because I suppose it would be better than the tutorial not working.

@vercel
Copy link

vercel bot commented Feb 2, 2023

@tomoam is attempting to deploy a commit to the Svelte Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Member

@dummdidumm dummdidumm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@vercel
Copy link

vercel bot commented Feb 3, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
learn-svelte-dev ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Feb 3, 2023 at 11:08AM (UTC)

@dummdidumm dummdidumm merged commit 262be83 into sveltejs:main Feb 3, 2023
@tomoam tomoam deleted the fix-195 branch February 21, 2023 06:21
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

Successfully merging this pull request may close these issues.

learn.svelte.dev crashing
2 participants