You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While running npx staticshape@latest, I get the error
FOLDER STRUCTURE
├───static-hugo
└───static-next
├───config.json
config.json was created before running the command and it's empty
My static site lives in static-next
I'm trying to output a Hugo site into static-hugo
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at file:///C:/Users/[USERNAME]/AppData/Local/npm-cache/_npx/9734112f603cd9ab/node_modules/staticshape/lib/index.js:122:21
BUILD LOG
npx staticshape@latest
(node:12020) ExperimentalWarning: The Node.js specifier resolution flag is experimental. It could change or be removed at any time.
(Use `node --trace-warnings ...` to show where the warning was created)
┌ Welcome to the StaticShape
│
◇ What folder contains your static site?
│ ./static-next
│
◆ Input set to C:\Users\[USERNAME]\code\js\portfolio-port\static-next
│
◇ Where is your staticshape config file?
│ ./config.json
│
◆ Input set to C:\Users\[USERNAME]\code\js\portfolio-port\config.json
│
◇ What folder should we output your SSG site?
│ ./_output/
│
◆ Input set to C:\Users\[USERNAME]\code\js\portfolio-port\_output
│
◇ What SSG would you like to use?
│ Hugo
│
▲ Something went wrong
undefined:2
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at file:///C:/Users/[USERNAME]/AppData/Local/npm-cache/_npx/9734112f603cd9ab/node_modules/staticshape/lib/index.js:122:21
The text was updated successfully, but these errors were encountered:
ccthecode
changed the title
ERROR: SyntaxError: Unexpected end of JSON input
ERROR: SyntaxError: Unexpected end of JSON input while running npx staticshape@latestSep 27, 2023
ccthecode
changed the title
ERROR: SyntaxError: Unexpected end of JSON input while running npx staticshape@latest
**ERROR**: SyntaxError: Unexpected end of JSON input while running npx staticshape@latestSep 27, 2023
ccthecode
changed the title
**ERROR**: SyntaxError: Unexpected end of JSON input while running npx staticshape@latest
ERROR: SyntaxError: Unexpected end of JSON input while running npx staticshape@latestSep 27, 2023
Hey there 👋, thanks for trying out StaticShape. I have released a new version on npm to show a better error if your JSON is malformed. Can you try it out and let me know how it goes? If that doesn't work, can you provide your config.json?
So I added this to the config.json file and I now getting this ERROR:
▲ Something went wrong
file:///C:/Users/[USERNAME]/AppData/Local/npm-cache/_npx/9734112f603cd9ab/node_modules/staticshape/lib/collection.js:45
let current = baseDoc.diff(documents[1]);
While running
npx staticshape@latest
, I get the errorFOLDER STRUCTURE
config.json
was created before running the command and it's emptystatic-next
static-hugo
BUILD LOG
The text was updated successfully, but these errors were encountered: