Caterpillar
Caterpillar copied to clipboard
Error: No default engine was specified and no extension was provided.
Hi, when i run caterpillar-core i get this error:
Error: No default engine was specified and no extension was provided. at new View (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\view.js:62:11) at Function.render (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\application.js:569:12) at ServerResponse.render (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\response.js:961:7) at C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\out\app.js:43:9 at Layer.handle_error (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\router\layer.js:71:5) at trim_prefix (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\router\index.js:310:13) at C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\router\index.js:280:7 at Function.process_params (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\router\index.js:330:12) at next (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\router\index.js:271:10) at Layer.handle_error (C:\Users\Lenovo\Caterpillar-master\v1.0\caterpillar-core\node_modules\express\lib\router\layer.js:73:5)
Thanks for your help.
I am facing the same issue.
Dear Developers,
thank you for your work.
I'm currently involved in a project from my university where I have to use your software. Unfortunately, my team and I are getting the error from above. At this point, we run out of ideas how to fix this problem by our one. Can please give us a hint?
Thank you in advance!
This seems to be a compatibility problem with the libraries used by the engine, or some step skipped on the setup of the application. The causes may vary, so I need more information about the steps performed.
I used version 2.0 To fix the issue there you have to replace in ./out/app.js on line 30
res.render('error', {
with
res.json({
This way express is not trying to use a view engine. I bet there is something similar for version1.0
Hi, I followed @Ferandal method to change the res.render to res.json. However, I got another issue {"message":"Not Found","error":{"status":404}}. Do you have any clue for that?
Same issue happens to me. Any solution find for now? @ZeshunShi @MacOS
It just doesn't work does it?
Actually, we managed to get it to work. Unfortunately, we did not write it down.
Actually, we managed to get it to work. Unfortunately, we did not write it down.
Can you please try to remember ? i need to use Caterpillar for a University Project and i cannot get past this problem. @MacOS