Describe the bug
Running npm run gen throws the following error on Windows:

To Reproduce
- Be on Windows 10
- Run
npm install
- Run
npm run gen from the root of the project or from examples dir
- See the same error as the screenshot above
Misc
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 :
const dir = path.parse(import.meta.url.replace("file://", "")).dir;
This issue is in every instance of the above code, in gen.ts, genDocs.ts, and util.ts
I was only able to generate the example code in #954 using my MacOS. So this issue is exclusively on Windows.
Describe the bug
Running
npm run genthrows the following error on Windows:To Reproduce
npm installnpm run genfrom 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.writeFileSyncthe 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.tsI was only able to generate the example code in #954 using my MacOS. So this issue is exclusively on Windows.