capacitor-community/text-to-speech

bug: Unable to install after upgrade to capacitor v4

samizarraa opened this issue · 9 comments

Platform(s):

"@capacitor/core": "^4.0.1",

Current behavior:

ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ****
npm ERR! Found: @capacitor/core@4.0.1
npm ERR! node_modules/@capacitor/core
npm ERR! @capacitor/core@"^4.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^3.0.0" from @capacitor-community/text-to-speech@1.1.3
npm ERR! node_modules/@capacitor-community/text-to-speech
npm ERR! @capacitor-community/text-to-speech@"*" 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.
npm ERR!

I will release the update over the next week.

@samizarraa You can already give it a try:

npm i @capacitor-community/text-to-speech@1.1.3-dev.690a781.1659193180

Same problem!

Did you try the dev build? What is the error message?

Did you try the dev build? What is the error message?

npm ERR! Found: @capacitor/core@4.0.1
npm ERR! node_modules/@capacitor/core
npm ERR! @capacitor/core@"^4.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @capacitor/core@"^3.0.0" from @capacitor-community/text-to-speech@1.1.3
npm ERR! node_modules/@capacitor-community/text-to-speech
npm ERR! @capacitor-community/text-to-speech@"^1.1.3-dev.690a781.1659193180" 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.
npm ERR!

@samizarraa You need to do a clean install:

  1. Remove node_modules folder
  2. Remove package-lock.json
  3. Update the version number of this package manually in your package.json
  4. Run npm i

@samizarraa You need to do a clean install:

1. Remove `node_modules` folder

2. Remove `package-lock.json`

3. Update the version number of this package manually in your `package.json`

4. Run `npm i`

It works fine when I installed first time,but got the same error when I tried "npm update"

@samizarraa You need to do a clean install:

1. Remove `node_modules` folder
2. Remove `package-lock.json`
3. Update the version number of this package manually in your `package.json`
4. Run `npm i`

It works fine when I installed first time,but got the same error when I tried "npm update"

Sure, because 'npm update' updates the dependency to the latest version. This is just a dev version. It is not yet the latest release. I will release the dev version as soon as it is tested. Just install the dev version and give it a try.

Ok, Thanks