Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Nodemon with IcedCoffeeScript

First of all, I install nodemon globally:

npm install -g nodemon

Then I try to start my apllication using the following command:

nodemon app.iced

And I get such error: "SyntaxError: Unexpected token ILLEGAL". However, I can run my application without nodemon without any errors:

iced --nodejs --debug app.iced

What the problem is?

like image 388
Dmitriy Avatar asked Jun 24 '26 23:06

Dmitriy


1 Answers

Try starting your app with:

nodemon -x iced app.iced

Also, if you're using nodemon you're probably interested in monitoring and restarting on changes to your codebase. So, if you want to automatically restart when an .iced file changes, you could do:

nodemon -x iced app.iced -e ".iced"

For more useful information on nodemon parameters, use nodemon --help.

like image 146
Ionut-Cristian Florescu Avatar answered Jun 26 '26 12:06

Ionut-Cristian Florescu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!