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

"[nodemon] clean exit" when using express' res.render #745

Closed
derenio opened this issue Jan 5, 2016 · 1 comment
Closed

"[nodemon] clean exit" when using express' res.render #745

derenio opened this issue Jan 5, 2016 · 1 comment

Comments

@derenio
Copy link

derenio commented Jan 5, 2016

When I run my service with the nodemon 1.8.1, with:

nodemon --debug --delay 0.5 -i 'public/' -i 'client/' -i 'node_modules/' main.coffee

The server works as expected until it needs to execute a res.render function, example:

...
    view: (req, res) ->
        context =
            some: 'data'
        res.render 'view', context

...

with an error:

[nodemon] clean exit - waiting for changes before restart

It does work normally when I run it with coffee main.coffee and it worked until I've updated nodemon to version 1.8.1.

I'm writing it in coffee-script and use jade as a rendering engine, running on nodejs 5.3.0.

@derenio
Copy link
Author

derenio commented Jan 8, 2016

Turns out it's an issue with the newest nodejs versions (starting from 5.2.0).

nodejs/node#4261

P.S. I've removed the logging as in the provided example and my code started to work. Turns out you shouldn't even remove the console.log from ones' crashing example...

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

1 participant