Closed WillGarman closed 7 months ago
I ended up downloading WSL2 (linux distro for windows guide here)
It is working. But still was not working before i started a linux distro
Ah, classic. I did some testing on Windows platform and was able to reproduce this. Basically some dynamic file imports were not working as the file URLs were not resolved correctly on Windows systems causing the CLI commands not to work. This has been addressed in v5.1.0
so I kindly ask you to upgrade to that version and see if you're problem is gone, thanks for reporting the problem.
I am using Windows 11 and even when using the
next-rest-framework
example repository, after going through the installations. When I runpnpm run generate
(from the package.json)npx next-rest-framework generate
Any sort of generate command (Including in my personal project), fails with the error:
/api/route.ts
like in the documentation (also tried the example repo and it didn't workI also tried to setting the api path using:
next-rest-framework generate --configPath /api
and got this errorHavent seen any open questions or docs covering this so, open to any and all ideas!
Ps: this is working perfectly fine for the macOS and linux folks