Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

YAML properties with hyphens cause Build error #636

Open
joesmusings opened this issue Mar 6, 2024 Discussed in #632 · 2 comments
Open

YAML properties with hyphens cause Build error #636

joesmusings opened this issue Mar 6, 2024 Discussed in #632 · 2 comments

Comments

@joesmusings
Copy link

Discussed in #632

Issue

YAML properties that contain a hyphen cause a build error

Example properties:

dg-publish: true
dg-publish: true
kanban-plugin: basic

Example Error

SyntaxError: Arg string terminates parameters early
    at new Function (<anonymous>)
    at file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:64:35
    at Object.Kc [as useMemo] (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:60:240)
    at exports.useMemo (/vercel/path0/node_modules/react/cjs/react.production.min.js:25:208)
    at MDXRemote (file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:52:21)
    at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
    at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
    at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
    at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
    at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:145)
Error occurred prerendering page "/Home". Read more: https://nextjs.org/docs/messages/prerender-error
SyntaxError: Arg string terminates parameters early
    at new Function (<anonymous>)
    at file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:64:35
    at Object.Kc [as useMemo] (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:60:240)
    at exports.useMemo (/vercel/path0/node_modules/react/cjs/react.production.min.js:25:208)
    at MDXRemote (file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:52:21)
    at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
    at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
    at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
    at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
    at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:145)
info  - Generating static pages (4/6)
info  - Generating static pages (6/6)
> Export encountered errors on following paths:
	/[[...slug]]: /Home
Error: Command "npm run export" exited with 1
@AsmodaiP
Copy link

same

@rufuspollock
Copy link
Member

@mohamedsalem401 can we check if this is something in remark-frontmatter or graymatter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

3 participants