-
-
Notifications
You must be signed in to change notification settings - Fork 142
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
Ember Data is a secret dependency breaking consumers of ec-addon-docs #818
Comments
Needed for ember-cli-addon-docs ... ember-learn/ember-cli-addon-docs#818
Needed for ember-cli-addon-docs ... ember-learn/ember-cli-addon-docs#818
ember-cli-addon-docs requires ember-data. Removed previously #380 ember-learn/ember-cli-addon-docs#818
ember-cli-addon-docs requires ember-data. Removed previously #380 ember-learn/ember-cli-addon-docs#818
ember-cli-addon-docs requires ember-data. Removed previously #380 ember-learn/ember-cli-addon-docs#818
ember-cli-addon-docs requires ember-data. Removed previously #380 ember-learn/ember-cli-addon-docs#818
I just ran into this issue when trying to upgrade my addon to Ember 4.x. I didn't realize that |
I realize this thread is old, but how do we feel about this today? A peerDependency does mean it is required to run. I think the problem is some folks use things that magically install peers automatically, and they do not get the warnings something like pnpm would give when the peerDep is not installed. |
Because I'm using |
I think option 1 is a must, and very low effort. Option 3 would still be pretty reasonable if it's going to break without that dependency, and I think that's fairly standard practice for peerDeps that are critical (as opposed to, say, testing-only peerDeps that are somewhat optional). |
I think adding to the docs is reasonable. Anyone interested in opening a PR? |
I've just created this PR for it. I'm not great at wording this, so would love feedback on it. |
It's marked as a
peerDependency
, but it is required for ec-addon-docs to run properly. If the consuming project does not haveember-data
in its package.json, ec-addon-docs breaks and throws an error, and the docs will not render. However, we can't specify it as a dependency within ec-addon-docs, either.Addons do not ship with ember-data by default, as it is not part of the addon blueprint. Most addons don't have a need to install it either, as most addons won't be doing any data fetching. So, we cannot count on ember-data to be present in order to ship a working experience to users of this project.
There are three possible solutions which could be used in conjunction with one another:
ember install
The text was updated successfully, but these errors were encountered: