cli icon indicating copy to clipboard operation
cli copied to clipboard

Netlify CLI does not work well with monorepos

Open zdunecki opened this issue 4 months ago • 0 comments

Describe the bug

Hi,

I have trouble when I'm working with Netlify CLI on monorepos. It's a bit weird cuz I've tried many configurations, and sometimes it works, but I also have issues with import_map. Nevertheless, always monorpo was problematic.

Best,

Steps to reproduce

  1. git clone https://github.com/zdunecki/example-edge-netlify-issue
  2. cd example-edge-netlify-issue
  3. pnpm i
  4. cd packages/package-a/examples/example-a/
  5. pnpm run netlify:dev

This should serve hello function, but does not work. I've tried without a monorepo, and it was working fine.

There's also a problem with import_map - I'm not quite sure, but cuz I've tried multiple configurations and previously monorpo was working, but import_map was not.

But as far as I debug that, problems always happen on my monorepo setu,p like monorepo + pnpm workspaces.

Configuration

No response

Environment

1. git clone https://github.com/zdunecki/example-edge-netlify-issue
2. cd example-edge-netlify-issue
3. pnpm i 
4. cd  packages/package-a/examples/example-a/
5. pnpm run netlify:dev

zdunecki avatar Oct 02 '25 23:10 zdunecki