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

[Feature]: Add capacitor to SSR enabled Angular project #7780

Closed
3 tasks done
Saqib92 opened this issue Nov 27, 2024 · 5 comments
Closed
3 tasks done

[Feature]: Add capacitor to SSR enabled Angular project #7780

Saqib92 opened this issue Nov 27, 2024 · 5 comments
Labels

Comments

@Saqib92
Copy link

Saqib92 commented Nov 27, 2024

Description

I have SSR enabled angular 18 project when i add capacitor integration it is showing error that index.html not found.

Platforms

  • iOS
  • Android
  • Web

Request or proposed solution

There should an option to update index.html file name in capacitor.config.ts file

Error i am getting:

The web assets directory (./dist/app/server) must contain an index.html file.
The web assets directory (./dist/app/browser) must contain an index.html file.

app/server generates index.server.html
app/browser generates index.csr.html

Alternatives

No response

Additional Information

No response

@Saqib92 Saqib92 added the triage label Nov 27, 2024
@jcesarmobile
Copy link
Member

closing as duplicate of #3912

@jcesarmobile jcesarmobile closed this as not planned Won't fix, can't repro, duplicate, stale Nov 27, 2024
@Saqib92
Copy link
Author

Saqib92 commented Nov 27, 2024

What is the solution for this? is there a way we can add capacitor to Angular SSR project?

@miguel2211
Copy link

I have the same error, did you find a solution?

@Saqib92
Copy link
Author

Saqib92 commented Nov 28, 2024

I have the same error, did you find a solution?

No. I tried renaming index.html file then run npx cap sync and npx cap build android but the app is crashing on startup.

Copy link

ionitron-bot bot commented Dec 28, 2024

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 Dec 28, 2024
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

3 participants