Skip to content

Netlify CLI does not work well with monorepos #7702

@zdunecki

Description

@zdunecki

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: bugcode to address defects in shipped code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions