Skip to content
This repository has been archived by the owner on Dec 21, 2023. It is now read-only.

Reproduction of the module isn't installed issue in Remix using pnpm workspace

Notifications You must be signed in to change notification settings

supachaidev/remix-build-cannot-find-module-repo

Repository files navigation

Reproduction of module not found issue in Remix

remix build and remix dev unexpectedly show the warns when a module isn't installed behavior, when using local packages in pnpm workspace.

The link to the Remix's test of this behavior is https://github.dev/remix-run/remix/blob/40a7a390063836607c76aad9754b7881f8c82303/integration/compiler-test.ts#L326

The issue might come from the workspace: prefix pnpm use to differentiate local packages from remote packages.

For example:

"dependencies": {
  "shared-ui": "workspace:^1.0.0"
}

Steps to reproduce

  1. Clone the repo.
  2. Run pnpm i.
  3. Run pnpm dev or pnpm build to see the warning message.

About

Reproduction of the module isn't installed issue in Remix using pnpm workspace

Resources

Stars

Watchers

Forks