Skip to content
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

fix: ignore templates node_modules #198

Merged

Conversation

AriPerkkio
Copy link
Member

@AriPerkkio AriPerkkio commented Aug 1, 2024

Fixes issues where users would see jsh: permission denied errors if src/templates/*/node_modules were present on host machines' file system. TutorialKit would copy those node_modules to webcontainers and try to run them. These node_modules may contain platform specific binaries that fail to run on webcontainers (non-wasm builds).

Adds node_modules to be ignored in src/templates. At this point the change is hard-coded and not configurable. See #189 (comment).

I'll create a follow-up feature request that would allow including node_modules, so that tutorial authors could include pre-optimized dependencies in their templates. This is lower priority task compared to #189 that users are running into now.

Copy link

stackblitz bot commented Aug 1, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@AriPerkkio AriPerkkio requested a review from d3lm August 1, 2024 05:11
Copy link
Contributor

@d3lm d3lm left a comment

Choose a reason for hiding this comment

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

LGTM

@AriPerkkio AriPerkkio merged commit d7215ca into stackblitz:main Aug 1, 2024
11 checks passed
@AriPerkkio AriPerkkio deleted the fix/template-ignore-node-modules branch August 1, 2024 07:07
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.

templates/*/node_modules should be ignored
2 participants