Skip to content

[BUG] Unable to generate collections based on example #7

@ancashoria

Description

@ancashoria

🐛 Bug Description

I'm following the get started from the readme. First thing I saw was that I had to install qs library myself otherwise it would throw an error. This was fixed after I installed it.

🔍 Steps to Reproduce

Next, I created src/content.config.ts with the following config:

strapiCollections = await generateCollections(
    {
      url: import.meta.env.STRAPI_URL,
      token: import.meta.env.STRAPI_API_READ,
    },
    [],
  );

I double checked my STRAPI_URL and STRAPI_API_READ token and it works because It threw a forbidden error otherwise.

After I fixed the forbidden error by checking everything from "Content-type-builder", I received the final boss error while running astro dev:

Error generating attribute schema RangeError: Maximum call stack size exceeded
    at defaultPrepareStackTrace (node:internal/errors:100:7)
    at Function.ErrorPrepareStackTrace (node:internal/errors:162:10)
    at prepareStackTraceCallback (node:internal/errors:144:29)
    at getStackString (node:internal/util/inspect:1318:13)
    at formatError (node:internal/util/inspect:1467:15)
    at formatRaw (node:internal/util/inspect:1057:14)
    at formatValue (node:internal/util/inspect:912:10)
    at inspect (node:internal/util/inspect:404:10)
    at formatWithOptionsInternal (node:internal/util/inspect:2407:40)
    at formatWithOptions (node:internal/util/inspect:2269:10)

💡 Expected Behavior

📸 Screenshots

💻 Environment

  • Astro Version: 5.13.5
  • Node Version: v22.18.0
  • Strapi Version: 5.23.0
  • OS: macOS

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions