kitajchuk / node-squarespace-server

DEPRECATED! A local Squarespace development server in node.js.
MIT License
186 stars 26 forks source link

TypeError: Cannot read property 'layout' of undefined #173

Open johnchourajr opened 8 years ago

johnchourajr commented 8 years ago

I get this issue when I run sqs server --reload

TypeError: Cannot read property 'layout' of undefined
    at getFolderRoot (/usr/local/lib/node_modules/node-squarespace-server/squarespace-server.js:319:51)
    at onExpressRouterGET (/usr/local/lib/node_modules/node-squarespace-server/squarespace-server.js:418:19)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/layer.js:82:5)
    at next (/usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/route.js:100:13)
    at Route.dispatch (/usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/route.js:81:3)
    at Layer.handle [as handle_request] (/usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/layer.js:82:5)
    at /usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/index.js:234:24
    at Function.proto.process_params (/usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/index.js:312:12)
    at /usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/index.js:228:12
    at Function.match_layer (/usr/local/lib/node_modules/node-squarespace-server/node_modules/express/lib/router/index.js:295:3)
mikehuebner commented 8 years ago

Getting the same issue for some reason. Cannot even login.

foleyatwork commented 8 years ago

I got this the other day and a cache bust fixed it. Does your problem persist after running the sqs buster?

sqs buster
mikehuebner commented 8 years ago

I got it working out of random. I just re-installed the module and it seemed to start working fine. If you don't have an index page on the Squarespace site, it won't work either I found out. I either missed the documentation on that or there is none.

So basic steps to set this up:

Ultimately decided not to use squarespace as I could not really develop my own template in it. I have yet to hear back from Customer Support on any other situation pertaining to this. But I guess this is not the place for this.

Thanks for the reply though!

Mike Huebner Designer & Developer http://mikehuebner.com

On May 11, 2016, at 01:24 PM, Kevin Foley notifications@github.com wrote:

I got this the other day and a cache bust fixed it. Does your problem persist after running the sqs buster? sqs buster — You are receiving this because you commented. Reply to this email directly or view it on GitHub