Open vilkinsons opened 1 month ago
Any solution to this yet? I'm having the same issue. For me it seems to be related to trying to set up images. in the docs it's set up like this for the contentlayer.config:
fields: { image: { type: string }, },
But that throws the error
ReferenceError: string is not defined
When I change is to
fields: { image: { type: "string" }, },
I get the exact same error. I've tried this using 0.3.4 and 0.3.2 using Node v16.17.0
When running
pnpm run dev
I get the following error, which prevents the dev server from evenstarting:I'm trying to use Contentlayer with Next.js 14.2.5 (app router). Here's the corresponding stack trace:
This is a newly-bootstrapped project, with some example content thrown in the
contentlayer.config.ts
file and apackage.json
which contains:If I can usefully provide any more information, please let me know.
I suspect my issue relates to (if not is duplicative of) https://github.com/contentlayerdev/contentlayer/issues/659