Marp CLI with nextjs #499
Answered
by
yhatt
ruthkangyr
asked this question in
Q&A
-
Hi, Im trying to use the marpCli in my nextjs webpage to obtain the output (pdf or pptx). I did this but it does not work.
Can i ask if there are some working examples of this implementation to use, or do is there any suggestion on this case? Thank you |
Beta Was this translation helpful? Give feedback.
Answered by
yhatt
Mar 5, 2024
Replies: 1 comment 8 replies
-
If you are attempting to run Marp CLI on the server side with Next.js App Router, adding /** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ['@marp-team/marp-cli'],
},
}
export default nextConfig |
Beta Was this translation helpful? Give feedback.
8 replies
Answer selected by
yhatt
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are attempting to run Marp CLI on the server side with Next.js App Router, adding
@marp-team/marp-cli
pacakge to theserverComponentsExternalPackages
setting innext.config.js
may make it work correctly.