kitajchuk / node-squarespace-server

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

SyntaxError: Unexpected end of input #196

Open aenhsaihan opened 8 years ago

aenhsaihan commented 8 years ago

Every once in a while, I'll break node-squarespace-server, and receive the following error:

undefined:1

SyntaxError: Unexpected end of input
    at Object.parse (native)
    at /usr/local/lib/node_modules/node-squarespace-server/squarespace-util.js:90:22
    at /usr/local/lib/node_modules/node-squarespace-server/squarespace-util.js:77:17
    at tryToString (fs.js:414:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)

Nothing I do has brought me back to its working state. I discard all my changes, and still get the same problem, even though everything was working fine before without any changes.

The only action that seems to work is deleting my repos, recloning them, running npm install, etc., which is a huge pain in the ass.