Am getting Individual declarations in merged declaration 'Blog' must be all exported or all local.ts(2395) from:
import type { Blog } from 'contentlayer/generated'
When using
import { Blog } from 'contentlayer/generated'
I get:
Individual declarations in merged declaration 'Blog' must be all exported or all local.ts(2395) Import 'Blog' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.
Am getting
Individual declarations in merged declaration 'Blog' must be all exported or all local.ts(2395)
from:When using
I get:
Individual declarations in merged declaration 'Blog' must be all exported or all local.ts(2395) Import 'Blog' conflicts with local value, so must be declared with a type-only import when 'isolatedModules' is enabled.
"contentlayer2": "0.4.6", "next-contentlayer2": "0.4.6"
Using same contentlayer.config.ts file as in https://github.com/timlrx/tailwind-nextjs-starter-blog but I added the blog to an existing repository, so I'm not sure if I have it setup right.
Edit: Renaming fixed it, which confuses me, since the
export const Blog
being exported is not a type