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

"compileDebug" option causing utils is not defined" #24

Open
andrewwakeling opened this issue Dec 21, 2016 · 1 comment
Open

"compileDebug" option causing utils is not defined" #24

andrewwakeling opened this issue Dec 21, 2016 · 1 comment

Comments

@andrewwakeling
Copy link

"compileDebug" is default on (if you are not minifying).

This is causing some code to get injected which appears to be relying on the EJS runtime.

The offending code is part of a "rethrow" function which throws an exception on:

var filename = utils.escapeXML(flnm);

Unsure what the fix is here. Perhaps the "ejs" library should be including the utils module when "client" is true.

It might be more appropriate to make "compileDebug" default false, or at least document any side-effects. This took me by surprise.

@janjangao
Copy link

same problem,if you not set compileDebug: false explicit,ejs default on
options.compileDebug = opts.compileDebug !== false;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants