Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error in express view engine when environment set to 'production' #169

Closed
mahnunchik opened this Issue Apr 23, 2013 · 4 comments

Comments

Projects
None yet
3 participants
/node_modules/blade/lib/blade.js:41
            var cacheKey = JSON.stringify(options);
                                ^
TypeError: Converting circular structure to JSON
    at Object.stringify (native)
    at compile (/node_modules/blade/lib/blade.js:41:24)
    at /node_modules/blade/lib/blade.js:78:4
    at fs.js:266:14
    at Object.oncomplete (fs.js:107:15)

https://github.com/bminer/node-blade/blob/master/lib/blade.js#L41

staryj commented Apr 23, 2013

+1

express version: 3.2.0

@ghost ghost assigned bminer Apr 23, 2013

Owner

bminer commented Apr 23, 2013

This is a bummer... I wonder what the options Object looks like when Express passes it to the __render function...

Owner

bminer commented Apr 23, 2013

I think that the solution here is to only "stringify" the Blade compiler options, excluding the other fields in options.

@bminer bminer closed this in a67ac75 Apr 23, 2013

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