How come my workspace is not recognized?

salieflewis
PRO

a month ago

npm error code EUNSUPPORTEDPROTOCOL
npm error Unsupported URL Type "workspace:": workspace:*
Solved$10 Bounty

0 Replies

salieflewis
PRO

a month ago

fbc83639-6b3a-48e2-8aa0-9c016d399bc7


a month ago

try using pnpm as a package manager instead (or bun or yarn or whatever, ive never gotten npm to work with workspaces)


salieflewis
PRO

a month ago

I’m using bun


a month ago

are you using Dockerfile?
if not can you send me your build logs?


salieflewis
PRO

a month ago

Sure let me share


salieflewis
PRO

a month ago

I'm not using a dockerfile… or there is no dockerfile within my monorepo


salieflewis
PRO

a month ago

1392504496650719500


a month ago

it's using npm <:Thinking:1360710341239242762>


salieflewis
PRO

a month ago

Hmm


salieflewis
PRO

a month ago

Using Railpack btw


a month ago

perfect, then can you show me the top-most part of your build logs?


salieflewis
PRO

a month ago

I screenshotted everything that was under 'Build Logs'


salieflewis
PRO

a month ago

Oh I see


salieflewis
PRO

a month ago

One sec


salieflewis
PRO

a month ago

1392505835405443000
1392505835845980200


a month ago

do you have bun specified as your package manager in your package.json?


salieflewis
PRO

a month ago

{
  "name": "river",
  "private": true,
  "scripts": {
    "start": "(cd apps/expo && bun start) & (cd apps/backend && bun start:dev)",
    "start:beam": "cd apps/beam && bun start",
    "lint": "biome check . --write",
    "format": "biome format . --write",
    "typecheck": "cd apps/expo && bun typecheck",
    "prepare": "husky"
  },
  "workspaces": ["apps/*", "packages/*"],
  "devDependencies": {
    "husky": "^9.1.7"
  }
}

salieflewis
PRO

a month ago

I have a bun.lock file in the root of the monorepo.. so it should know


a month ago

yea its weird that it's using npm anyway


a month ago

can you try setting your package manager to bun in package.json? maybe that'll make it use bun


salieflewis
PRO

a month ago


a month ago

did you alter the root directory for your service in your service settings?


salieflewis
PRO

a month ago

Yes, its pointed to my backend


a month ago

oh okay yea then that's your problem


a month ago

that's only done on isolated monorepos


a month ago

for shared monorepos you deploy the entire repo but alter the start command to point to start whatever app needs to start within the service so that each service runs a different app in the monorepo


salieflewis
PRO

a month ago

What do you mean, whats the difference?


salieflewis
PRO

a month ago

But I can still have my watch paths set appropriately?


a month ago

an isolated monorepo is a monorepo where each repo is completely isolated from the others, meaning no shared folder or packages or anything, each one runs indepedently


a month ago

a shared monorepo is what you have, might have a shared directory, it shares dependencies and such


a month ago

yea


salieflewis
PRO

a month ago

Ok, will try that


salieflewis
PRO

a month ago

Thank you


salieflewis
PRO

a month ago

That seemed to work! Thanks so much


salieflewis
PRO

a month ago

Do you know why these scripts appear as errors?

1392510496367841300


a month ago

I am not sure


a month ago

it's probably fine though


salieflewis
PRO

a month ago

Yeah its fine was just a tiny bit bothersome


a month ago

i can imagine


a month ago

all good then? clear to mark as solved?


salieflewis
PRO

a month ago

Yes!


salieflewis
PRO

a month ago

Although one further question if you're still around


a month ago

sure what's up?


a month ago

Feel free to open up another thread if you still want to ask your question


a month ago

!s


Status changed to Solved dev 27 days ago