primocms / primo

Primo is a visual CMS with a built-in code editor, Svelte blocks, and static site generator.
https://primocms.org
MIT License
1.92k stars 474 forks source link

Build on vercel fails #332

Closed semantium closed 11 months ago

semantium commented 11 months ago

I followed the installation steps for Vercel.

When I built on vercel, I run into the following error:

error during build:

16:36:54.931 | RollupError: "database_subscribe" is not exported by "node_modules/@primocms/builder/dist/index.js", imported by "src/routes/[site]/+layout.svelte". 16:36:54.931 | at error (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:2128:30) 16:36:54.931 | at Module.error (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:13322:16) 16:36:54.931 | at Module.traceVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:13707:29) 16:36:54.931 | at ModuleScope.findVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:12210:39) 16:36:54.931 | at ReturnValueScope.findVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:6953:38) 16:36:54.931 | at ChildScope.findVariable (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:6953:38) 16:36:54.931 | at Identifier.bind (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:8103:40) 16:36:54.931 | at CallExpression.bind (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:5749:23) 16:36:54.931 | at CallExpression.bind (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:9630:15) 16:36:54.931 | at ExpressionStatement.bind (file:///vercel/path0/node_modules/rollup/dist/es/shared/node-entry.js:5749:23) 16:36:54.998 | Error: Command "npm run build" exited with 1

Please advise.

mateomorris commented 11 months ago

Sorry! Will have this fixed in a bit

mateomorris commented 11 months ago

Okay @semantium this should be fixed now; feel free to reopen if you're still seeing it after syncing your fork.