Caterpillar icon indicating copy to clipboard operation
Caterpillar copied to clipboard

Error: No default engine was specified and no extension was provided.

Open TBP-BE opened this issue 6 years ago • 9 comments

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.

TBP-BE avatar Jul 04 '18 17:07 TBP-BE

I am facing the same issue.

ghost avatar Sep 05 '18 07:09 ghost

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!

MacOS avatar Dec 11 '18 09:12 MacOS

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.

orlenyslp avatar Dec 17 '18 01:12 orlenyslp

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

Ferandal avatar Jan 14 '19 20:01 Ferandal

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?

ZeshunShi avatar Apr 16 '20 13:04 ZeshunShi

Same issue happens to me. Any solution find for now? @ZeshunShi @MacOS

nicedinner2 avatar Jul 29 '20 13:07 nicedinner2

It just doesn't work does it?

Saptarshi-Dey avatar Jan 27 '21 12:01 Saptarshi-Dey

Actually, we managed to get it to work. Unfortunately, we did not write it down.

MacOS avatar Jan 27 '21 12:01 MacOS

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

lupinheiro avatar Jun 23 '21 01:06 lupinheiro