Skip to content
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

Generator Script not providing any error logging #172

Closed
MilanDeruelle opened this issue Jun 17, 2024 · 1 comment
Closed

Generator Script not providing any error logging #172

MilanDeruelle opened this issue Jun 17, 2024 · 1 comment

Comments

@MilanDeruelle
Copy link

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!

@blomqma
Copy link
Owner

blomqma commented Aug 27, 2024

Thanks, better error handling for generating the routes has been added in v6.0.3 by #178, hope this is helpful with debugging.

@blomqma blomqma closed this as completed Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants