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

Closed
nemophrost opened this Issue Mar 13, 2013 · 3 comments

Projects

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()

Owner
bminer commented Mar 13, 2013

Confirmed. This was changed with the release of Node 0.10.0.
nodejs/node-v0.x-archive@089ec58

I will push a fix out right away.

@bminer bminer closed this in 5021a13 Mar 13, 2013
Owner
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