-
-
Notifications
You must be signed in to change notification settings - Fork 463
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
dev-scripts path issue on Windows #955
Comments
need change import { fileURLToPath } from "url";
const dir = path.parse(fileURLToPath(import.meta.url)).dir; |
@jkcs That silenced the error but it doesn't seem to be actually generating the examples.gen.tsx due to |
That only silenced the errors. But unfortunately it can't read any example directories which makes it output an empty example object in |
Ah yeah, I was also running into this when I was working on Windows way back. Basically, |
/bounty 10 |
💎 $10 bounty • BlockNoteSteps to solve:
Thank you for contributing to TypeCellOS/BlockNote! Add a bounty • Share on socials
|
/attempt #955
|
💡 @jkcs submitted a pull request that claims the bounty. You can visit your bounty board to reward. |
@jkcs: You've been awarded a $10 bounty by BlockNote! We'll notify you once it is processed. |
🎉🎈 @jkcs has been awarded $10! 🎈🎊 |
Describe the bug
Running
npm run gen
throws the following error on Windows:To Reproduce
npm install
npm run gen
from the root of the project or from examples dirMisc
I was hitting my head for an hour trying to figure this one out. When I comment out
fs.writeFileSync
the error is gone, and this seems to be originating from the way we're getting the path/dir :This issue is in every instance of the above code, in
gen.ts
,genDocs.ts
, andutil.ts
I was only able to generate the example code in #954 using my MacOS. So this issue is exclusively on Windows.
The text was updated successfully, but these errors were encountered: