datopian / flowershow

💐 Publish your obsidian digital garden or any markdown site easily and elegantly.
https://flowershow.app/
MIT License
756 stars 92 forks source link

Cannot find tsconfig file "undefined/tsconfig.mdx.json" #479

Closed RoarG closed 6 months ago

RoarG commented 1 year ago

Describe the bug Cannot find tsconfig file "undefined/tsconfig.mdx.json"

To Reproduce Steps to reproduce the behavior:

  1. Follow tutorial: https://flowershow.app/blog/2023-02-16-nextjs-tutorial
  2. Follow to step (https://flowershow.app/blog/2023-02-16-nextjs-tutorial#basic-configuration)
  3. npm run dev
  4. See error

Expected behavior build and run

Error

Warning: Contentlayer might not work as expected on Windows
✘ [ERROR] Cannot find tsconfig file "undefined/tsconfig.mdx.json"

Error: Found 1 problems in 1 documents.

 └── Encountered unexpected errors while processing of 1 documents. This is possibly a bug in Contentlayer. Please open an issue.

     • "Index.md": UnexpectedMDXError: Error: Build failed with 1 error:
     error: Cannot find tsconfig file "undefined/tsconfig.mdx.json"

Desktop (please complete the following information):

Additional context Also I needed to rename the content/config.js to content/config.mjs

mohamedsalem401 commented 6 months ago

DUPLICATE. Duplicate of https://github.com/datopian/flowershow/issues/457

rufuspollock commented 6 months ago

@mohamedsalem401 great catch. Please then close this by ...

image

PS: bonus for adding this extra example to https://www.datopian.com/playbook/issues-tasks

rufuspollock commented 6 months ago

@mohamedsalem401 where is the closing comment i requested 😉

mohamedsalem401 commented 6 months ago

@rufuspollock

@mohamedsalem401 where is the closing comment i requested 😉

But I have updated the original comment 😅, anyway I will add a new one 👍

DUPLICATE. Duplicate of #457

mohamedsalem401 commented 6 months ago

DUPLICATE. Duplicate of https://github.com/datopian/flowershow/issues/457