-
Notifications
You must be signed in to change notification settings - Fork 12
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
Component doesn't render in Angular v17 w/ Angular Material v16 #86
Comments
Hi @toastyghost, could you provide any errors from the web browser console, if there are any? Also, if possible, could you share a test scenario? |
Hello @pIvan Thanks for taking a look to this issue let me share with you the actual error in the chrome dev tools:
from a component that upone a click in an upload button renders plus cosmetics here and there:
|
Can you provide more information? Is the mat-dialog component marked as standalone? Does it include all necessary imports, such as FileUploadModule or just FileUploadComponent? I've created a simple example. Please let me know if it differs significantly from your code example. My example works until I remove either FileUploadModule or FileUploadComponent from the component's imports. Then I encounter the same error you described. Here's a working example:
|
Hi @pIvan This is the import code I am using in my application import { FileUploadModule } from '@iplab/ngx-file-upload' But I am getting same error |
A little background info: We're running this combination of versions because the upgrade to Material UI 5 would require a significant refactor, but it is officially supported according to the Angular migration tool. The versions are 17.1.0 for your package (this is the one that allowed peer deps to resolve), 16.2.14 for Angular Material, and 17.3.12 for the other Angular packages.
I got a minimal example working with the same combination of dependency versions, but even pasting the exact markup, methods, etc., from that into our app code, it still renders as shown in the screenshot. The interior HTML also isn't present when I inspect.
It is inside of a mat-dialog component, if that makes a difference.
How it's supposed to look:
How it looks with the updated dependencies:
The text was updated successfully, but these errors were encountered: