Git Product home page Git Product logo

Comments (4)

deeseert avatar deeseert commented on July 16, 2024 1

It seems to be an error coming from next-mdx which I resolved, for now, with overrides in package.json:

"overrides": {
    "@mdx-js/mdx": "2.1.5",
    "@mdx-js/react": "2.1.5"
  }

Solution found on their Github repo.

from bookworm-light-nextjs.

tfsomrat avatar tfsomrat commented on July 16, 2024

Hello @deeseert

can you give me your repository link? or can you upload your full package.json file here? thanks

from bookworm-light-nextjs.

deeseert avatar deeseert commented on July 16, 2024

Hi @tfsomrat,

I don't have a repo but here is the package.json:

{
  "name": "bookworm-light-nextjs",
  "author": "Themefisher",
  "version": "1.1.0",
  "private": false,
  "license": "MIT",
  "scripts": {
    "dev": "next dev",
    "build": "node lib/jsonGenerator.js && next build",
    "export": "next build && next export",
    "lint": "next lint",
    "start": "next start"
  },
  "dependencies": {
    "github-slugger": "^1.4.0",
    "gray-matter": "^4.0.3",
    "marked": "^4.1.1",
    "next": "12.3.1",
    "next-mdx-remote": "^4.1.0",
    "react": "18.2.0",
    "react-dom": "18.2.0",
    "react-gtm-module": "^2.0.11",
    "react-icons": "^4.6.0",
    "rehype-slug": "^5.0.1",
    "remark-gfm": "^3.0.1"
  },
  "devDependencies": {
    "date-fns": "^2.29.3",
    "date-fns-tz": "^1.3.7",
    "@tailwindcss/forms": "^0.5.3",
    "@tailwindcss/typography": "^0.5.7",
    "autoprefixer": "^10.4.12",
    "eslint": "8.25.0",
    "eslint-config-next": "12.3.1",
    "jshint": "^2.13.5",
    "postcss": "^8.4.18",
    "prettier": "^2.7.1",
    "prettier-plugin-tailwindcss": "^0.1.13",
    "sass": "^1.55.0",
    "sharp": "^0.31.1",
    "tailwind-bootstrap-grid": "^5.0.1",
    "tailwindcss": "^3.1.8"
  },
  "overrides": {
    "@mdx-js/mdx": "2.1.5",
    "@mdx-js/react": "2.1.5"
  }
}

Adding overrides worked. So I believe that's an error of incompatibility between mdx and nextjs?

from bookworm-light-nextjs.

tfsomrat avatar tfsomrat commented on July 16, 2024

Hey @deeseert

we take a step back by changing the next-mdx-remote version to 3.0.8 so everything run perfectly. also we updated the template to Nextjs 13. you can download the latest code and check if is everything working perfectly. thanks

from bookworm-light-nextjs.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.