blomqma / next-rest-framework

Type-safe, self-documenting APIs for Next.js
https://next-rest-framework.vercel.app
Other
134 stars 18 forks source link

Generator Script not providing any error logging #172

Open MilanDeruelle opened 2 months ago

MilanDeruelle commented 2 months ago

Hey,

after getting the generator to work (see my comments in the other issue) I am now struggeling with the generation. The provided example does work correctly (using js with node v20) - however as soon as I add any imports of my own files to the example (even just import x from 'emptyfile') the generator finishes with success but generates an empty file. The route works fine when testing using next dev.

My main problem here: next-rest-framework does not provide any error logging or feedback. I guess it has something todo with ES6 and using modules but I'm not provided with any sort of debugging feedback.

Also, if anyone has an idea why the generator produces an empty file, I'd be happy about some help.

Thank you and best regards!