compiler.js broken if this.options.basedir is undefined #151

nemophrost opened this Issue Mar 13, 2013 · 3 comments


None yet

2 participants

Line 41 of compiler.js causes an error if you haven't set this.options.baseDir. Not sure if this is a new bug introduced with the latest release of Node.

I change the line (as a temporary fix) to:
this.options.basedir = this.options.basedir ? path.resolve(this.options.basedir) : process.cwd();

@bminer bminer was assigned Mar 13, 2013

Note: This was specifically encountered when using blade.renderFile()

bminer commented Mar 13, 2013

Confirmed. This was changed with the release of Node 0.10.0.

I will push a fix out right away.

@bminer bminer closed this in 5021a13 Mar 13, 2013
bminer commented Mar 13, 2013

Thanks for the bug report!

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