Skip to content

Marp CLI with nextjs #499

Answered by yhatt
ruthkangyr asked this question in Q&A
Mar 5, 2024 · 1 comments · 8 replies
Discussion options

You must be logged in to vote

If you are attempting to run Marp CLI on the server side with Next.js App Router, adding @marp-team/marp-cli pacakge to the serverComponentsExternalPackages setting in next.config.js may make it work correctly.

/** @type {import('next').NextConfig} */
const nextConfig = {
  experimental: {
    serverComponentsExternalPackages: ['@marp-team/marp-cli'],
  },
}

export default nextConfig

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@ruthkangyr
Comment options

@yhatt
Comment options

@ruthkangyr
Comment options

@yhatt
Comment options

@ruthkangyr
Comment options

Answer selected by yhatt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants