tinacms / tinasaurus

https://tinasaurus.vercel.app
169 stars 64 forks source link

Error when building using next #18

Open wasims1 opened 1 month ago

wasims1 commented 1 month ago

Lemme start by saying this is a great project and thank you for the effort put forward!

However, was wondering if it's possible to build it using next build, and start it using next start? the reason being it allows an active server that keeps it in sync with the updated data on github etc... The current setup serves the docusaurus files, however it does not integrate instant syncing to updated content on github (because of lack of running server).

I attempted to do it however I received multiple type errors:


next build

 ▲ Next.js 14.2.5
  - Environments: .env

 ✓ Linting and checking validity of types
   Creating an optimized production build ...
   Disabled SWC as replacement for Babel because of custom Babel configuration "babel.config.js" https://nextjs.org/docs/messages/swc-disabled
Failed to compile.

./src/components/Hero/index.js
Module not found: Can't resolve '@docusaurus/Link'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./src/components/Blocks/index.jsx
./src/pages/index.js

./src/components/Hero/index.js
Module not found: Can't resolve '@docusaurus/useDocusaurusContext'

https://nextjs.org/docs/messages/module-not-found

Import trace for requested module:
./src/components/Blocks/index.jsx
./src/pages/index.js

./src/pages/index.js
Module not found: Can't resolve '@theme/Layout'

https://nextjs.org/docs/messages/module-not-found

./src/pages/index.js
Module not found: Can't resolve '@docusaurus/useDocusaurusContext'

https://nextjs.org/docs/messages/module-not-found

> Build failed because of webpack errors```