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

Importing NgxFilesizeModule which does not have a ɵmod property #376

Open
ma7moudat opened this issue Mar 16, 2022 · 0 comments
Open

Importing NgxFilesizeModule which does not have a ɵmod property #376

ma7moudat opened this issue Mar 16, 2022 · 0 comments

Comments

@ma7moudat
Copy link

ma7moudat commented Mar 16, 2022

ngx-filesize v2.0.16

This is more of a question than an issue, in case someone has a solution.

While trying to update Angular monorepo from 13.2.0 to 13.2.6 we started getting the following error in the unit tests of modules that import NgxFilesizeModule:

Importing NgxFilesizeModule which does not have a ɵmod property

Somewhat strange findings:

  • The errors are thrown only when running unit tests. Running the app in the browser seems to work just fine.
  • If we import FileSizePipe and add it to declarations instead of having NgxFilesizeModule in the imports, the unit tests finish successfully (however, the application can't be built anymore - error: Cannot declare 'FileSizePipe' in an NgModule as it's not a part of the current compilation.).

The does not have a ɵmod property errors are a known issue with pnpm, but the workarounds for that didn't seem to work for our case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant