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: black screen #25588

Closed
4 of 7 tasks
jakub-beep opened this issue Jul 7, 2022 · 6 comments
Closed
4 of 7 tasks

bug: black screen #25588

jakub-beep opened this issue Jul 7, 2022 · 6 comments
Labels
ionitron: needs reproduction a code reproduction is needed from the issue author

Comments

@jakub-beep
Copy link

Prerequisites

Ionic Framework Version

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

Current Behavior

ionic/react : “5.6.8”
ionic/react-router: “5.6.9”
react: “17.0.2”
next: “11.0.1”
Hi, I am facing issues with black screen and components losing its styling during interaction with a page. It happens usually when I am clicking on the buttons which call some popups which are ionic components. I am pretty sure it is also connected with routing. This little css property is called during those events. I can of course block this css in the code, but it is pointless because when I set it to transparent I see that components lost its styling, also I cannot interact with the page. I see that Ionic 6 probably resolves those issues, because after migration I did not face any issues, but I cannot be sure, because many things just crashed and I would have to upgrade them to test it fully. Unfortunately it is quite impossible to migrate our app to ionic 6 right now because there is no enough time and there is no guarantee that everything will be fine.
Is there anyone who faced those issues and could help me to solve this problem? Please help.

Expected Behavior

When rerouting I expect not to lose styling and not to see blackscreen popup.

Steps to Reproduce

Honestly I am not sure.

Code Reproduction URL

No response

Ionic Info

ionic/react : “5.6.8”
ionic/react-router: “5.6.9”

Additional Information

No response

@ionitron-bot ionitron-bot bot added the triage label Jul 7, 2022
@liamdebeasi liamdebeasi added the ionitron: needs reproduction a code reproduction is needed from the issue author label Jul 7, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Jul 7, 2022

Thanks for the issue! This issue has been labeled as needs reproduction. This label is added to issues that need a code reproduction.

Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.

If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.

For a guide on how to create a good reproduction, see our Contributing Guide.

@ionitron-bot ionitron-bot bot removed the triage label Jul 7, 2022
@Sukaato
Copy link
Contributor

Sukaato commented Jul 7, 2022

I have the same issue, when i go to a page that use an ion-datetime i got a blackscreen (depends on theme) and some errors:

TypeError: Failed to resolve module specifier "@utils/logging". Relative references must start with either "/", "./", or "../". undefined
Uncaught (in promise) Error: Constructor for "ion-datetime#undefined" was not found
    at initializeComponent (index-163bbb8a.js:2040:23)

and in stencil build logs i got a warn too

[ WARN  ]  Bundling Warning UNRESOLVED_IMPORT
           '@utils/logging' is imported by
           ./node_modules/@ionic/core/dist/collection/components/datetime/utils/comparison.js, but could not be
           resolved – treating it as an external dependency

which refers to this commit : 5dfaf63

And finally, this refers to a bug in stencilJS, typescript knows its custom path, but stencilJS does not know this custom path.
You need to add @rollup/plugin-alias and add this in the stencil configuration.

export const config: Config = {
  rollupPlugins: {
    before: [
      alias({
        entries: [
          { find: '@custom/*', replacement: 'same path from tsconfig' },
        ]
      })
    ]
  }
}

@sean-perkins
Copy link
Contributor

@Sukaato since the listed dependencies are v5, your reported issue is a different problem. I'll split the issue and get a PR to resolve that problem.

@sean-perkins
Copy link
Contributor

@Sukaato I have an open PR, but here is a dev-build in the interim: 6.1.14-dev.11657236641.106931ae

@liamdebeasi
Copy link
Contributor

Thanks for the issue! This issue is being closed due to the lack of a code reproduction. 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.

The separate issue mentioned in #25588 (comment) has been resolved in Ionic 6.1.14.

Thank you for using Ionic!

@liamdebeasi liamdebeasi closed this as not planned Won't fix, can't repro, duplicate, stale Jul 21, 2022
@ionitron-bot
Copy link

ionitron-bot bot commented Aug 20, 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 Aug 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ionitron: needs reproduction a code reproduction is needed from the issue author
Projects
None yet
Development

No branches or pull requests

4 participants