Failed to publish using the Obsidian plugin #695
Replies: 5 comments 8 replies
|
bumping this up in case no one saw it |
|
@renelopezgomez Thanks for reporting this. Note however, that Obsidian Flowershow plugin, starting from v 2.0.0 doesn't support self-publishing and is specifically built for Flowershow Cloud (you can request early access here: https://flowershow.app/ ). But if you're still using v 1 and you want to continue using it, I'd need to see the raw markdown content to help you. So not just a screenshot from Obsidian, but rather raw contents of the file that causes errors on. You could e.g. send me a link to this file on GitHub (if your repo is not private) or paste the whole file in a comment here. |
|
Also, we are considering adding back support for self-publishing too as a config option, but it's just not our priority atm. |
|
Here's one of the files I had trouble publishing: |
|
@renelopezgomez I'm not sure what it is exactly yet but I've narrowed the issue down to the frontmatter. I think self-hosted Flowershow template can't parse it correctly, even though it's a correct YAML in theory. If you remove it the page will generate successfully, but I know this is not a solution. Self-hosted Flowershow is not out priority atm, so you'd need to tinker with it yourself for now (either with the code or try structuring your frontmatter differently and see if that helps). But I highly recommend trying out Flowershow Cloud, it's free, and I've just tested your markdown file on it and it works (although we don't display custom metadata like this in the UI yet, but the page body will render correctly). |
Uh oh!
There was an error while loading. Please reload this page.
Hello, I posted this same problem here, but the issue was closed. I don't want to spam this forum but I'm still having the same problem so I'm posting here again since this is the place where I'm redirected when clicking on the support link in the website.
I'm using the Obsidian plugin to publish, but I get this error in Vercel:
Here's the last error log:
[14:27:02.885] Cloning github.com/renelopezgomez/obsidian_test (Branch: main, Commit: 849517d)
[14:27:03.493] Previous build cache not available
[14:27:03.508] Cloning completed: 623.000ms
[14:27:03.732] Running build in Washington, D.C., USA (East) – iad1
[14:27:03.872] Running "vercel build"
[14:27:05.080] Vercel CLI 41.1.4
[14:27:05.469] Running "install" command:
npm install...[14:27:07.238] npm warn ERESOLVE overriding peer dependency
[14:27:07.239] npm warn While resolving: react-virtual@2.10.4
[14:27:07.239] npm warn Found: react@18.2.0
[14:27:07.239] npm warn node_modules/react
[14:27:07.239] npm warn react@"^18.2.0" from the root project
[14:27:07.239] npm warn 24 more (@docsearch/react, @floating-ui/react-dom, ...)
[14:27:07.239] npm warn
[14:27:07.240] npm warn Could not resolve dependency:
[14:27:07.240] npm warn peer react@"^16.6.3 || ^17.0.0" from react-virtual@2.10.4
[14:27:07.240] npm warn node_modules/kbar/node_modules/react-virtual
[14:27:07.240] npm warn react-virtual@"^2.8.2" from kbar@0.1.0-beta.40
[14:27:07.240] npm warn node_modules/kbar
[14:27:07.240] npm warn
[14:27:07.240] npm warn Conflicting peer dependency: react@17.0.2
[14:27:07.240] npm warn node_modules/react
[14:27:07.240] npm warn peer react@"^16.6.3 || ^17.0.0" from react-virtual@2.10.4
[14:27:07.240] npm warn node_modules/kbar/node_modules/react-virtual
[14:27:07.240] npm warn react-virtual@"^2.8.2" from kbar@0.1.0-beta.40
[14:27:07.240] npm warn node_modules/kbar
[14:27:12.523] npm warn deprecated @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
[14:27:12.552] npm warn deprecated puppeteer@18.2.1: < 19.4.0 is no longer supported
[14:27:12.778] npm warn deprecated @silvenon/remark-smartypants@2.0.0: renamed to just "remark-smartypants"
[14:27:14.279] npm warn deprecated @floating-ui/react-dom-interactions@0.13.3: Package renamed to @floating-ui/react
[14:27:33.265]
[14:27:33.266] added 992 packages, and audited 993 packages in 27s
[14:27:33.266]
[14:27:33.266] 311 packages are looking for funding
[14:27:33.266] run
npm fundfor details[14:27:33.338]
[14:27:33.339] 29 vulnerabilities (3 low, 7 moderate, 19 high)
[14:27:33.339]
[14:27:33.339] To address issues that do not require attention, run:
[14:27:33.340] npm audit fix
[14:27:33.340]
[14:27:33.340] Some issues need review, and may require choosing
[14:27:33.340] a different dependency.
[14:27:33.340]
[14:27:33.341] Run
npm auditfor details.[14:27:33.402] Detected Next.js version: 13.3.0
[14:27:33.404] Running "npm run export"
[14:27:33.533]
[14:27:33.533] > flowershow@2.0.3 export
[14:27:33.533] > npm run build && next export
[14:27:33.533]
[14:27:33.650]
[14:27:33.650] > flowershow@2.0.3 prebuild
[14:27:33.650] > npm run generate
[14:27:33.651]
[14:27:33.769]
[14:27:33.770] > flowershow@2.0.3 generate
[14:27:33.770] > cross-env NODE_OPTIONS="--experimental-json-modules --experimental-modules" node -r esbuild-register ./scripts/prebuild.mjs
[14:27:33.770]
[14:27:34.467]
[14:27:34.469] > flowershow@2.0.3 build
[14:27:34.469] > next build
[14:27:34.469]
[14:27:34.807] Attention: Next.js now collects completely anonymous telemetry regarding usage.
[14:27:34.808] This information is used to shape Next.js' roadmap and prioritize features.
[14:27:34.808] You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the following URL:
[14:27:34.808] https://nextjs.org/telemetry
[14:27:34.808]
[14:27:34.906] info - Skipping linting
[14:27:34.907] info - Checking validity of types...
[14:27:38.579] info - Creating an optimized production build...
[14:27:55.495] Browserslist: caniuse-lite is outdated. Please run:
[14:27:55.496] npx update-browserslist-db@latest
[14:27:55.496] Why you should do it regularly: https://github.com/browserslist/update-db#readme
[14:28:07.855] Browserslist: caniuse-lite is outdated. Please run:
[14:28:07.856] npx browserslist@latest --update-db
[14:28:07.856] Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating
[14:28:09.506] info - Compiled successfully
[14:28:09.509] info - Collecting page data...
[14:28:25.764] info - Generating static pages (0/7)
[14:28:25.925] SyntaxError: Arg string terminates parameters early
[14:28:25.926] at new Function ()
[14:28:25.928] at file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:64:35
[14:28:25.928] at Object.Kc [as useMemo] (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:60:240)
[14:28:25.928] at exports.useMemo (/vercel/path0/node_modules/react/cjs/react.production.min.js:25:208)
[14:28:25.928] at MDXRemote (file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:52:21)
[14:28:25.929] at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
[14:28:25.929] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
[14:28:25.929] at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
[14:28:25.929] at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
[14:28:25.929] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:145)
[14:28:25.930]
[14:28:25.930] Error occurred prerendering page "/flowershow". Read more: https://nextjs.org/docs/messages/prerender-error
[14:28:25.930] SyntaxError: Arg string terminates parameters early
[14:28:25.930] at new Function ()
[14:28:25.930] at file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:64:35
[14:28:25.930] at Object.Kc [as useMemo] (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:60:240)
[14:28:25.930] at exports.useMemo (/vercel/path0/node_modules/react/cjs/react.production.min.js:25:208)
[14:28:25.931] at MDXRemote (file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:52:21)
[14:28:25.931] at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
[14:28:25.931] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
[14:28:25.931] at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
[14:28:25.931] at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
[14:28:25.931] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:145)
[14:28:25.932] info - Generating static pages (1/7)
[14:28:25.983] info - Generating static pages (3/7)
[14:28:26.024] info - Generating static pages (5/7)
[14:28:26.104] SyntaxError: Arg string terminates parameters early
[14:28:26.104] at new Function ()
[14:28:26.104] at file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:64:35
[14:28:26.105] at Object.Kc [as useMemo] (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:60:240)
[14:28:26.105] at exports.useMemo (/vercel/path0/node_modules/react/cjs/react.production.min.js:25:208)
[14:28:26.105] at MDXRemote (file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:52:21)
[14:28:26.105] at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
[14:28:26.105] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
[14:28:26.105] at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
[14:28:26.105] at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
[14:28:26.105] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:145)
[14:28:26.106]
[14:28:26.106] Error occurred prerendering page "/problema del mal". Read more: https://nextjs.org/docs/messages/prerender-error
[14:28:26.106] SyntaxError: Arg string terminates parameters early
[14:28:26.106] at new Function ()
[14:28:26.106] at file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:64:35
[14:28:26.106] at Object.Kc [as useMemo] (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:60:240)
[14:28:26.106] at exports.useMemo (/vercel/path0/node_modules/react/cjs/react.production.min.js:25:208)
[14:28:26.106] at MDXRemote (file:///vercel/path0/node_modules/next-mdx-remote/dist/index.js:52:21)
[14:28:26.106] at Wc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:68:44)
[14:28:26.106] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:70:253)
[14:28:26.106] at Z (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:76:89)
[14:28:26.106] at $c (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:78:98)
[14:28:26.106] at Zc (/vercel/path0/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js:71:145)
[14:28:26.109] info - Generating static pages (7/7)
[14:28:26.110]
[14:28:26.110] > Export encountered errors on following paths:
[14:28:26.110] /[[...slug]]: /flowershow
[14:28:26.110] /[[...slug]]: /problema del mal
[14:28:26.202] Error: Command "npm run export" exited with 1
[14:28:26.617]
Can somebody help? Thanks in advance!
All reactions