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

[Bug]: The bundledWebRuntime configuration option has been deprecated. Please, use a bundler to bundle Capacitor and its plugins. #7833

Closed
1 of 3 tasks
pasindu-pr opened this issue Jan 19, 2025 · 2 comments
Labels

Comments

@pasindu-pr
Copy link

Capacitor Version

Capacitor Doctor

Latest Dependencies:

@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0
@capacitor/android: 6.2.0
@capacitor/ios: 6.2.0

Installed Dependencies:

@capacitor/android: not installed
@capacitor/ios: not installed
@capacitor/cli: 6.2.0
@capacitor/core: 6.2.0

Other API Details

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

I created a new Vite React app. Then initialized capacitor cli using npx cap init . Then as described in the documentation I set "bundledWebRuntime": true and ran npx cap sync web. Now it says [warn] The bundledWebRuntime configuration option has been deprecated. Please, use a bundler to bundle Capacitor and its plugins. and it didn't copy the Capacitor runtime bundle (capacitor.js) into my web assets directory.

Expected Behavior

Copy the Capacitor runtime bundle (capacitor.js) into my web assets directory.

Project Reproduction

https://github.com/pasindu-pr/capacitor-demo

Additional Information

No response

@jcesarmobile
Copy link
Member

As the message indicates, bundledWebRuntime is deprecated and it has been removed in Capacitor 7.
Since you are using vite you don't need that, vite is a bundler.

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Jan 20, 2025
Copy link

ionitron-bot bot commented Feb 19, 2025

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Feb 19, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants