baryshev / ect

Fastest JavaScript template engine with embedded CoffeeScript syntax

Home Page:http://ectjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ectjs with jxcore

BilalBoulifa opened this issue · comments

I'm trying to pack my app with jxcore and it give me this error when trying to access a web page.

The problem is that ect is not able to see the views folder because with jxcore all the project is packaged into a single exe file.

Error: watch ENOENT
at errnoException (fs.js:1131:11)
at FSWatcher.start (fs.js:1163:11)
at Object.fs.watch (fs.js:1188:11)
at [object Object].TemplateContext.load (D:\Users\bb14193\Downloads\node_modules\ect\lib\ect.js.jx:355:27)
at [object Object].TemplateContext.render (D:\Users\bb14193\Downloads\node_modules\ect\lib\ect.js.jx:369:25)
at View.render (D:\Users\bb14193\Downloads\node_modules\ect\lib\ect.js.jx:416:34)
at View.render (D:\Users\bb14193\Downloads\node_modules\express\lib\view.js.jx:127:8)
at tryRender (D:\Users\bb14193\Downloads\node_modules\express\lib\application.js.jx:640:10)
at EventEmitter.render (D:\Users\bb14193\Downloads\node_modules\express\lib\application.js.jx:592:3)
at ServerResponse.render (D:\Users\bb14193\Downloads\node_modules\express\lib\response.js.jx:962:7)
at app.get.req.session.user (D:\Users\bb14193\Downloads\app.js.jx:42:7)
at Layer.handle as handle_request
at next (D:\Users\bb14193\Downloads\node_modules\express\lib\router\route.js.jx:132:13)
at Route.dispatch (D:\Users\bb14193\Downloads\node_modules\express\lib\router\route.js.jx:113:3)
at Layer.handle as handle_request
at D:\Users\bb14193\Downloads\node_modules\express\lib\router\index.js.jx:278:22
at Function.process_params (D:\Users\bb14193\Downloads\node_modules\express\lib\router\index.js.jx:331:12)
at next (D:\Users\bb14193\Downloads\node_modules\express\lib\router\index.js.jx:272:10)
at Object. (D:\Users\bb14193\Downloads\node_modules\express-session\index.js.jx:434:7)
at Object.immediate._onImmediate (timers.js:380:16)
at processImmediate as _immediateCallback

the solution is to set the option watch to false

you can close the issue.