Oak-Digital / types-4-strapi-2

Automate the creation of typescript interfaces for your strapi 4 projects
MIT License
24 stars 4 forks source link

SyntaxError: Unexpected end of JSON input #28

Closed hyenabyte closed 1 year ago

hyenabyte commented 1 year ago
SyntaxError: Unexpected end of JSON input
    at JSON.parse (<anonymous>)
    at LoadStrapiReader.<anonymous> (/Users/hyena/Workspace/OakDigital/clients/surfnsup/surfsup/strapi/node_modules/@oak-digital/types-4-strapi-2/lib/readers/load-strapi/index.js:86:35)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/hyena/Workspace/OakDigital/clients/surfnsup/surfsup/strapi/node_modules/@oak-digital/types-4-strapi-2/lib/readers/load-strapi/index.js:6:58) [{"admin::permission":{"collectionName":"admin_permissions","info":{"name":"Permission","description
Error: Failed to parse output from remote strapi
    at LoadStrapiReader.<anonymous> (/Users/hyena/Workspace/OakDigital/clients/surfnsup/surfsup/strapi/node_modules/@oak-digital/types-4-strapi-2/lib/readers/load-strapi/index.js:90:23)
    at Generator.next (<anonymous>)
    at fulfilled (/Users/hyena/Workspace/OakDigital/clients/surfnsup/surfsup/strapi/node_modules/@oak-digital/types-4-strapi-2/lib/readers/load-strapi/index.js:6:58)

On MacOS.

Works on NixOS on same branch

Alexnortung commented 1 year ago

Fixed by #29