timlrx / contentlayer2

Contentlayer turns your content into data - making it super easy to import MD(X) and CMS content in your app
https://contentlayer.dev
MIT License
153 stars 11 forks source link

Missing a ; in generated mjs file ? #29

Closed eggcaker closed 1 month ago

eggcaker commented 1 month ago

after run pnpm run build got error below


.contentlayer/generated/DocumentationPage/_index.mjs:3:71
Type error: ';' expected.

  1 | // NOTE This file is auto-generated by Contentlayer
  2 |
> 3 | import docs__legal__privacyMdx from './docs__legal__privacy.mdx.json' with { type: 'json' }
    |                                                                       ^
  4 | import docs__legal__tosMdx from './docs__legal__tos.mdx.json' with { type: 'json' }
  5 | import docs__resources__followUsMdx from './docs__resources__follow-us.mdx.json' with { type: 'json' }
  6 | import docs__resources__socialMdx from './docs__resources__social.mdx.json' with { type: 'json' }
 ELIFECYCLE  Command failed with exit code 1.
 ```

1.  next.js 14.2.4 
 2. contentlayer2 :0.5.0