Deploying project w/ pnpm workspace monorepo

I have a project in a monorepo that uses pnpm workspaces. I'm trying to deploy it to CF pages right now, but it seems that during the build it tries to do something with the packages which causes it to fail. Is there any workaround/planned fix for this?
19:00:57.108 Started restoring cached node modules
19:00:57.126 Finished restoring cached node modules
19:00:57.616 Installing NPM modules using NPM version 8.1.0
19:00:58.544 npm ERR! code EUNSUPPORTEDPROTOCOL
19:00:58.546 npm ERR! Unsupported URL Type "workspace:": workspace:*
19:00:58.562
19:00:58.563 npm ERR! A complete log of this run can be found in:
19:00:58.563 npm ERR! /opt/buildhome/.npm/_logs/2023-02-16T03_00_58_547Z-debug.log
19:00:58.568 Error during NPM install
19:00:58.572 Failed: build command exited with code: 1
19:00:59.581 Failed: an internal error occurred
19:00:57.108 Started restoring cached node modules
19:00:57.126 Finished restoring cached node modules
19:00:57.616 Installing NPM modules using NPM version 8.1.0
19:00:58.544 npm ERR! code EUNSUPPORTEDPROTOCOL
19:00:58.546 npm ERR! Unsupported URL Type "workspace:": workspace:*
19:00:58.562
19:00:58.563 npm ERR! A complete log of this run can be found in:
19:00:58.563 npm ERR! /opt/buildhome/.npm/_logs/2023-02-16T03_00_58_547Z-debug.log
19:00:58.568 Error during NPM install
19:00:58.572 Failed: build command exited with code: 1
19:00:59.581 Failed: an internal error occurred
5 Replies
Cyb3r-Jak3
Cyb3r-Jak32y ago
Someone managed to get it with npx but otherwise you'll probably have to wait for build image v2
m
mOP2y ago
found a workaround, just use gh actions instead! but a fix in v2 is appreciated 👍
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
m
mOP2y ago
hi, i use gh actions to build and upload the output files to cf directly
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server