Closed noam-honig closed 2 months ago
Tried both on windows and wsl git clone https://github.com/stackblitz/tutorialkit cd tutorialkit pnpm i cd docs npm run dev
Does it work if you build the sources before running dev
?
On windows it doesn't (the build fails for rm
) but on wsl it does and that's good enough
Appologies for missing that step
On windows it doesn't (the build fails for
rm
)
Where is this failing rm
happening?
On windows it doesn't (the build fails for
rm
)Where is this failing
rm
happening?
C:\repos\tutorialkit>pnpm build
> @ build C:\repos\tutorialkit
> pnpm run --stream --filter='@tutorialkit/*' --filter=create-tutorial build
Scope: 7 of 15 workspace projects
packages/types build$ tsc -b tsconfig.build.json
packages/cli build$ node scripts/build.js
packages/create-tutorial build$ rm -rf dist && tsc -b
packages/theme build$ tsc -b
packages/create-tutorial build: 'rm' is not recognized as an internal or external command,
packages/create-tutorial build: operable program or batch file.
packages/create-tutorial build: command not found: rm
packages/create-tutorial build: Failed
C:\repos\tutorialkit\packages\create-tutorial:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL create-tutorial@0.0.3 build: `rm -rf dist && tsc -b`
Exit status 127
packages/cli build: Done
ELIFECYCLE Command failed with exit code 127.
Oh Windows 🙃
I guess we could change that to inline node -e
call. Or create separate script for this. I'd like to avoid adding rimraf
.
"scripts": {
- "build": "rm -rf dist && tsc -b",
+ "build": "node --eval 'fs.rmSync(`./dist`, { recursive: true, force: true })' dist && tsc -b",
Describe the bug
I tried adding some docs, but can't seem to get the environment working
Link to a StackBlitz project which shows the error
No response
Steps to reproduce
Tried both on windows and wsl git clone https://github.com/stackblitz/tutorialkit cd tutorialkit pnpm i cd docs npm run dev
I get on wsl:
And on windows:
Expected behavior
Wanted it to work :)
p.s. It also required me to install a specific version of pnpm - 8.15.6 - otherwise pnpm i failed (at least on windows)
Screenshots
No response
Platform
Additional context
No response