Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not support pnpm catalog feature #648

Open
gossi opened this issue Nov 21, 2024 · 1 comment
Open

Does not support pnpm catalog feature #648

gossi opened this issue Nov 21, 2024 · 1 comment

Comments

@gossi
Copy link

gossi commented Nov 21, 2024

pnpm has this really nice feature, called catalog. That changes the way how you define the versions of your dependency, and using it yields this error message:

ember-auto-import was unable to find any copy of itself that satisfies the app's requested range of catalog:ember

We use it to define the versions of our ember deps in pnpm-workspace.yml as:

catalogs:
  ember:
    "@ember/optional-features": "^2.1.0"
    "@ember/string": "^4.0.0"
    "@ember/test-helpers": "^3.3.1"
    "@embroider/addon-dev": "^7.0.0"
    "@embroider/addon-shim": "^1.9.0"
    "@embroider/macros": "^1.16.9"
    "@embroider/test-setup": "^4.0.0"
    "@glimmer/component": "^1.1.2"
    "@glimmer/tracking": "^1.1.2"
    "@glint/core": "^1.5.0"
    "@glint/environment-ember-loose": "^1.5.0"
    "@glint/template": "^1.5.0"
    "ember-auto-import": "^2.10.0"
    "ember-cli": "~5.12.0"
    "ember-cli-app-version": "^6.0.1"
    "ember-cli-babel": "^8.2.0"
    "ember-cli-dependency-checker": "^3.3.2"
    "ember-cli-htmlbars": "^6.3.0"
    "ember-cli-inject-live-reload": "^2.1.0"
    "ember-cli-sri": "^2.1.1"
    "ember-load-initializers": "^2.1.2"
    "ember-qunit": "^8.1.0"
    "ember-resolver": "^12.0.1"
    "ember-source": "~5.12.0"
    "ember-source-channel-url": "^3.0.0"
    "ember-try": "^3.0.0"
    "qunit": "^2.22.0"
    "qunit-dom": "^3.2.1"

And then in package.json looks like so:

{
  "devDependencies": {
    "ember-auto-import": "catalog:ember",
    "ember-cli": "catalog:ember",
  }
}

but the one with ember-auto-import isn't working. It seems like there is a check against that version number, but can't use pnpm's resolving for the catalog: protocol.

@lougreenwood
Copy link

I just hit this too

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants