Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Dependency on angular/material #9

Closed
moniuch opened this issue Feb 3, 2022 · 1 comment
Closed

Dependency on angular/material #9

moniuch opened this issue Feb 3, 2022 · 1 comment

Comments

@moniuch
Copy link

moniuch commented Feb 3, 2022

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[x] Bug report  
[ ] Performance issue
[ ] Feature request
[ ] Documentation issue or request
[x] Support request
[ ] Other... Please describe:

Current behavior

Dependency on angular/material errors when compiling

Expected behavior

No such dependency or making it optional.

Minimal reproduction of the problem with instructions

nx workspace
angular 13.1
ngx-errors 3.1.5

Following errors in the console:

./node_modules/@ngspot/ngx-errors/fesm2015/ngspot-ngx-errors.mjs:3:0-45 - Error: Module not found: Error: Can't resolve '@angular/material/core' in '......../node_modules/@ngspot/ngx-errors/fesm2015'

./node_modules/@ngspot/ngx-errors/fesm2015/ngspot-ngx-errors.mjs:9:0-48 - Error: Module not found: Error: Can't resolve '@angular/material/input' in '........../node_modules/@ngspot/ngx-errors/fesm2015'

What is the motivation / use case for changing the behavior?

Environment


Angular version: X.Y.Z


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Do I really need to install angular/material if I don't need it otherwise? What is that that needs to be imported from angular/material for displaying error messages, please?

@DmitryEfimenko
Copy link
Contributor

I knew this will going to come up!
I moved @angular/material dependencies into a separate package. Try @ngspot/ngx-errors@3.2.0 and let me know if you run into some issues

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

No branches or pull requests

2 participants