vuex-orm/plugin-axios-next

Can't install with new version of vuex-orm-next

M3psipax opened this issue · 4 comments

Describe the bug

cannot install this plugin because it depends on an older version

Steps to reproduce the bug

npm i @vuex-orm/plugin-axios-next

Expected behavior

installs

Versions

  • Vuex ORM Axios: 1.0.0-draft-2
  • Vuex ORM: 1.0.0-draft-10

Link to minimal reproduction

Additional context

Any chance this will get updated to work with newer versions?

yarn add @vuex-orm/plugin-axios@next
and
npm i @vuex-orm/plugin-axios@next
seem to work :)

Is there no 2021 version 1.0 final release yet?

yarn add @vuex-orm/plugin-axios@next and npm i @vuex-orm/plugin-axios@next seem to work :)

As you can see in

"@vuex-orm/core": "1.0.0-draft.4",
there's a dev dependency on "@vuex-orm/core": "1.0.0-draft.4".

Trying to install this with vuex-orm-next "@vuex-orm/core": "^1.0.0-draft.14" results in this error:

npm ERR! Found: @vuex-orm/core@1.0.0-draft.14
npm ERR! node_modules/@vuex-orm/core
npm ERR!   @vuex-orm/core@"^1.0.0-draft.14" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @vuex-orm/core@"1.0.0-draft.4" from @vuex-orm/plugin-axios@1.0.0-draft.2
npm ERR! node_modules/@vuex-orm/plugin-axios
npm ERR!   @vuex-orm/plugin-axios@"1.0.0-draft.2" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

I'm not sure why npm thinks dev-dependencies should be relevant here, but that's apparently how it is.

I don't think it's an advisable approach to use the --force option, is it?

I don't understand why it works for you. Maybe an already installed older version of vuex-orm where you tried it?
I'm quite sure if you try this with a new project, you'll get the same error.

@Danger89
Nothing is done in this project yet. The first draft you see here is just a shell.