sqlite icon indicating copy to clipboard operation
sqlite copied to clipboard

Create CapacitorJS v6 package compatibility

Open bluepuma77 opened this issue 10 months ago • 29 comments

Describe the bug CapacitorJS v6.0 was just released (Github, Blog). Now npm is throwing error on update, need to use --force or --legacy-peer-deps to make it work.

To Reproduce Update all npm libraries to latest with ncu -u, then run npm i.

Expected behavior Should work without "force".

Additional context Big question for me is how to make CapacitorJS v5 continue smoothly, so those users don't get an update error.

bluepuma77 avatar Apr 16 '24 15:04 bluepuma77

According to ChatGPT multiple major versions can be enabled:

  "peerDependencies": {
    "@capacitor/core": "^5.0.0 || ^6.0.0"
  },

bluepuma77 avatar Apr 16 '24 18:04 bluepuma77

@bluepuma77 capacitor 6 is not supported yet

jepiqueau avatar Apr 17 '24 06:04 jepiqueau

@jepiqueau, any chance we can expect support for capacitor 6 in the next few days?

-- edit --

I just tried to force install the plugin on capacitor v6 and it didn't break my app. Can you please push a minor version adding support to version 6 like @bluepuma77 suggested? It will stop breaking the npm install at least.

rosostolato avatar Apr 18 '24 21:04 rosostolato

@rosostolato not really Capacitor 6 requires for iOS Xcode 15 which runs only on Sonatra which is not supported on my MacBook Pro. So i cannot build the ios part otherwise it would have been released already.

jepiqueau avatar Apr 19 '24 06:04 jepiqueau

@jepiqueau got it, I had just tested on Android.

But actually, xcode 15 requires Ventura 13.5 to run: https://developer.apple.com/documentation/xcode-release-notes/xcode-15-release-notes

Doesn't your Mac support it? And if not, can't you run it on a vm? Or if you tell me what I need to do, I can build it for you.

rosostolato avatar Apr 19 '24 11:04 rosostolato

@rosostolato thanks for your proposalbut my Mac is from 2016so it does not even support Ventura. I will what solutions i have but it will take a bit of time free which is not the case those week as i got some personal issues. I will keep you aware of the progress

jepiqueau avatar Apr 19 '24 13:04 jepiqueau

@jepiqueau Did you contact Ionic developer relations, if they could sponsor you a new MacBook, as you are an important community maintainer? Their "Director of Developer Relations" is on LinkedIn 😄

bluepuma77 avatar Apr 24 '24 12:04 bluepuma77

@bluepuma77 can give me his références name and email please

jepiqueau avatar Apr 25 '24 06:04 jepiqueau

Sorry, only got links: https://www.linkedin.com/in/mhartington/ https://twitter.com/mhartington https://mastodon.social/@mhartington https://github.com/mhartington

Or you could try other channels: https://forum.ionicframework.com/ https://discord.com/invite/UPYYRhtyzp

bluepuma77 avatar Apr 25 '24 09:04 bluepuma77

Same here, waiting for support v6

Meerkap avatar Apr 28 '24 19:04 Meerkap

@bluepuma77 i sent an email to Mike, we will see. May be some of you can also sponsor me for part of it

jepiqueau avatar Apr 29 '24 06:04 jepiqueau

Dude, you should try a VM. If you have Linux or even windows, you can try docker-osx. It's not illegal, you can see more info on their faq section.

rosostolato avatar Apr 29 '24 11:04 rosostolato

@rosostolato i tried a VM with Windows but it is far to slow and the mouse motion is also slow making it really not useful.

jepiqueau avatar Apr 29 '24 13:04 jepiqueau

@jepiqueau have you tried docker-osx running on wsl? I know it's not that fast like an actual Mac but not too slow that you can't use to compile stuff.

rosostolato avatar Apr 29 '24 14:04 rosostolato

Waiting for support v6 too here 🙏

RubioN avatar May 02 '24 16:05 RubioN

@jepiqueau if you tell me the steps I can compile it for you. We can't just let this package get stale because of that.

rosostolato avatar May 03 '24 13:05 rosostolato

@rosostolato i have publish an alpha version for Capacitor6 that you can install with `npm i --save @capacitor-community/sqlite@capv6 in your app, i will check it to day for Android, Electron and Web by migrating my testing apps to Capacitor6. If you can do it for one of your app (migrating to Capacitor6) and build it and report to me the result it would be great

jepiqueau avatar May 06 '24 07:05 jepiqueau

@jepiqueau I have checked my app in browser as well as android emulator(14) its working fine..Thanks

lajith111 avatar May 06 '24 09:05 lajith111

@bluepuma77 @rosostolato @lajith111 @RubioN @Meerkap I tested the @capacitor-community/sqlite@capv6 on Android, Electron, Web it works fine.

jepiqueau avatar May 06 '24 09:05 jepiqueau

@lajith111 thanks for the feedback on Android and Web

jepiqueau avatar May 06 '24 10:05 jepiqueau

Thank you very much @jepiqueau ! I'll keep an eye on developments for iOS

RubioN avatar May 06 '24 11:05 RubioN

Same here, waiting for support v6 image

eideard-hm avatar May 06 '24 17:05 eideard-hm

@eideard-hm you can try out the new version by installing @capacitor-community/sqlite@capv6

rosostolato avatar May 06 '24 17:05 rosostolato

@rosostolato did you try building the ios plugin in an app ? What was the result?

jepiqueau avatar May 06 '24 17:05 jepiqueau

@jepiqueau not yet, I will try tonight or tomorrow, I will let you know.

rosostolato avatar May 06 '24 17:05 rosostolato

@jepiqueau I just tested it on my capacitor v6 app and everything looks good. Both iOS and Android are just working. Thank you for that!

rosostolato avatar May 06 '24 23:05 rosostolato

@rosostolato thanks for your feedback. Happy of this

jepiqueau avatar May 07 '24 06:05 jepiqueau

When V6?

xsorifc28 avatar May 12 '24 14:05 xsorifc28

@jepiqueau do you have some news please ? 🙏

RubioN avatar May 21 '24 07:05 RubioN

@RubioN as mentioned above you can use @capacitor-community/sqlite@capv6 it has been tested by myself for Web, Electron and Android and by @rosostolato for iOS and it works fine.

jepiqueau avatar May 21 '24 11:05 jepiqueau