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

Create CapacitorJS v6 package compatibility #541

Open
bluepuma77 opened this issue Apr 16, 2024 · 31 comments
Open

Create CapacitorJS v6 package compatibility #541

bluepuma77 opened this issue Apr 16, 2024 · 31 comments

Comments

@bluepuma77
Copy link

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
Copy link
Author

According to ChatGPT multiple major versions can be enabled:

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

@jepiqueau
Copy link
Collaborator

@bluepuma77 capacitor 6 is not supported yet

@rosostolato
Copy link

rosostolato commented Apr 18, 2024

@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.

@jepiqueau
Copy link
Collaborator

@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.

@lajith111
Copy link

@jepiqueau time being is it possible to update only for Android ?

@rosostolato
Copy link

rosostolato commented Apr 19, 2024

@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.

@jepiqueau
Copy link
Collaborator

@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

@bluepuma77
Copy link
Author

@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 😄

@jepiqueau
Copy link
Collaborator

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

@Meerkap
Copy link

Meerkap commented Apr 28, 2024

Same here, waiting for support v6

@jepiqueau
Copy link
Collaborator

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

@rosostolato
Copy link

rosostolato commented Apr 29, 2024

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.

@jepiqueau
Copy link
Collaborator

@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.

@rosostolato
Copy link

@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.

@RubioN
Copy link

RubioN commented May 2, 2024

Waiting for support v6 too here 🙏

@rosostolato
Copy link

@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.

@jepiqueau
Copy link
Collaborator

@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

@lajith111
Copy link

lajith111 commented May 6, 2024

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

@jepiqueau
Copy link
Collaborator

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

@jepiqueau
Copy link
Collaborator

@lajith111 thanks for the feedback on Android and Web

@RubioN
Copy link

RubioN commented May 6, 2024

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

@eideard-hm
Copy link

Same here, waiting for support v6
image

@rosostolato
Copy link

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

@jepiqueau
Copy link
Collaborator

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

@rosostolato
Copy link

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

@rosostolato
Copy link

@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!

@jepiqueau
Copy link
Collaborator

@rosostolato thanks for your feedback. Happy of this

@xsorifc28
Copy link

When V6?

@RubioN
Copy link

RubioN commented May 21, 2024

@jepiqueau do you have some news please ? 🙏

@jepiqueau
Copy link
Collaborator

@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.

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

8 participants