node-squarespace-server icon indicating copy to clipboard operation
node-squarespace-server copied to clipboard

SyntaxError: Unexpected end of input

Open aenhsaihan opened this issue 9 years ago • 0 comments

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.

aenhsaihan avatar Jul 22 '16 22:07 aenhsaihan