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: v6, overlay controllers not defining backdrop #24393

Closed
4 of 6 tasks
raymondboswel opened this issue Dec 14, 2021 · 19 comments · Fixed by #24439
Closed
4 of 6 tasks

bug: v6, overlay controllers not defining backdrop #24393

raymondboswel opened this issue Dec 14, 2021 · 19 comments · Fixed by #24439
Labels
package: core @ionic/core package type: bug a confirmed bug report

Comments

@raymondboswel
Copy link

Prerequisites

Ionic Framework Version

  • v4.x
  • v5.x
  • v6.x

Current Behavior

My project is currently running on 6.0.0-rc3 and the action sheet controller works as expected. When upgrading to 6.0.0, I get the following error:

Uploading image.png…

Expected Behavior

The actionsheet should keep working.

Steps to Reproduce

Clone the reproduction project

npm i
npm run dev:start

Click the FAB to see the action sheet.

Update to 6.0.0, and run the project again.

Code Reproduction URL

https://github.com/raymondboswel/ionic-modal-reproduction

Ionic Info

No response

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Dec 14, 2021
@liamdebeasi liamdebeasi self-assigned this Dec 14, 2021
@liamdebeasi
Copy link
Contributor

Thanks for the issue. Can you please isolate your test case a bit more? I am getting some errors for 3rd party dependencies when trying to install. In particular, I am receiving this error:

pm ERR! code ETARGET
npm ERR! notarget No matching version found for tailwindcss@next.
npm ERR! notarget In most cases you or one of your dependencies are requesting
npm ERR! notarget a package version that doesn't exist.

In order for us to effectively triage this issue, the sample app should only include the code necessary to reproduce the issue.

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Dec 14, 2021
@liamdebeasi liamdebeasi removed their assignment Dec 14, 2021
@ionitron-bot ionitron-bot bot removed the triage label Dec 14, 2021
@raymondboswel
Copy link
Author

Hi @liamdebeasi, apologies for the deps not installing, I have pinned the offending dependency. You can pull the latest branch now to see the exception being thrown 👍

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Dec 14, 2021
@liamdebeasi
Copy link
Contributor

Thanks. Now I am getting the following error:

Failed to resolve import "../.routify/routes" from "src/App.svelte". Does the file exist?

Did you include your routing config?

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Dec 14, 2021
@ionitron-bot ionitron-bot bot removed the triage label Dec 14, 2021
@raymondboswel
Copy link
Author

Hmm. I just cloned the repo in a fresh directory on my side, and it works. I think you might be running into this issue: vitejs/vite#2585 || vitejs/vite#2647 ("issue was because of a space in parent folder name.").

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Dec 14, 2021
@liamdebeasi
Copy link
Contributor

I don't seem to have the .routify directory at the root. Do I need to do anything special to get this? I also do not see the .routify directory in the repo: https://github.com/raymondboswel/ionic-modal-reproduction

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Dec 14, 2021
@ionitron-bot ionitron-bot bot removed the triage label Dec 14, 2021
@raymondboswel
Copy link
Author

raymondboswel commented Dec 14, 2021

The .routify directory is in the .gitignore of the starter project I used. But if I delete it locally and run npm run dev:start it gets recreated. You can also try npm run build:app, or npm run build:routify to create it. In the mean time I'll push the directory then we can see if that works.

Edit: Looking at the .routify files, I see there are absolute paths in there, so I doubt they would work, but I'll push them anyhow.

@ionitron-bot ionitron-bot bot added triage and removed needs: reply the issue needs a response from the user labels Dec 14, 2021
@liamdebeasi
Copy link
Contributor

npm run dev:start did the trick! Not sure why it did not work the first time. Thanks!

@raymondboswel
Copy link
Author

Excellent! I'm glad it's working. Let me know if you need anything else.

@liamdebeasi
Copy link
Contributor

One more question -- what is the error you are getting? The screenshot you attached is not showing up:

image

@raymondboswel
Copy link
Author

image

@liamdebeasi
Copy link
Contributor

If you import actionSheetController from @ionic/core/components instead of @ionic/core, does that fix the issue?

@ionic/core uses lazy loading while @ionic/core/components does not. It seems that mixing the two is causing some unexpected behaviors.

@liamdebeasi liamdebeasi added the needs: reply the issue needs a response from the user label Dec 15, 2021
@ionitron-bot ionitron-bot bot removed the triage label Dec 15, 2021
@raymondboswel
Copy link
Author

raymondboswel commented Dec 15, 2021

That took care of the exception, but there's an issue with the backdrop in 6.0.0. I've attached video of the behaviour (You can't see me clicking, but clicking on the background does not dismiss the AS)

action-sheet-6 0 0

@ionitron-bot ionitron-bot bot removed the needs: reply the issue needs a response from the user label Dec 15, 2021
@ionitron-bot ionitron-bot bot added the triage label Dec 15, 2021
@raymondboswel
Copy link
Author

For reference 6.0.0-rc.3:

action-sheet-6 0 0-rc3

@liamdebeasi
Copy link
Contributor

Ah looks like the backdrop is not getting defined. We should fix that internally.

As a workaround, importing and defining IonBackdrop should fix the issue until we can get a patch in.

@liamdebeasi liamdebeasi changed the title bug: Actionsheet controller throws exception in 6.0.0 bug: v6, overlay controllers not defining backdrop Dec 15, 2021
@liamdebeasi liamdebeasi added package: core @ionic/core package type: bug a confirmed bug report labels Dec 15, 2021
@liamdebeasi
Copy link
Contributor

This looks to be a continuation of #24372.

@raymondboswel
Copy link
Author

Ok great. I'll be happy to try a fix out when it's released 👍

@sean-perkins
Copy link
Contributor

@raymondboswel can you try this dev build of v6 with the additional custom elements defined for overlays and let me know if that resolves the issues you've reported?

npm install @ionic/core@6.0.0-dev.1639604950.5995f29

@raymondboswel
Copy link
Author

raymondboswel commented Dec 16, 2021

Yes, that looks great @sean-perkins 👍 . The only remaining issue I can see at this stage, is that a modal created with

<ion-modal bind:this={modal} is-open={showModal}>
  <CreateProject />
</ion-modal>

doesn't seem to quite get the screen dimensions right, but I've already reported that in #24379.

image

Created with modalController:
image

Thank you very much guys! I think we can close this one out 👍

@ionitron-bot
Copy link

ionitron-bot bot commented Jan 16, 2022

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 Ionic, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Jan 16, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: core @ionic/core package type: bug a confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants