ngx-chips icon indicating copy to clipboard operation
ngx-chips copied to clipboard

Can't resolve 'ng2-material-dropdown' in '...'

Open sharok opened this issue 7 years ago • 4 comments

I'm submitting a ... (check one with "x")

[x] bug report => search github for a similar issue or PR before submitting
[ ] support request/question

Notice: feature requests will be ignored, submit a PR if you'd like

Current behavior

I have updated my angular app to 6 and started to get error, before everything was fine.

All works fine in the dev mode. But when I make the production build ng build --prod I get the following error:

Module not found: Error: Can't resolve 'ng2-material-dropdown' in 'path_to_my_module_where_I_import_the_TagInputModule'

If I install ng2-material-dropdown then I don't get the error.

Some info that could be helpful:

  1. I import TagInputModule in the feature lazy module, not AppModule.
  2. node version is 9.11.1
  3. npm version is 5.6.0

Expected behavior

Should work in prod mode too.

Minimal reproduction of the problem with instructions (if applicable)

What do you use to build your app?. Please specify the version

Angular CLI 6.0.0

Angular version:

6.0.0

ngx-chips version:

1.9.1

Browser: [all]

sharok avatar May 12 '18 14:05 sharok

Can you try v1.9.2? If not, does it make a difference if the module is not lazy loaded?

Gbuomprisco avatar May 13 '18 10:05 Gbuomprisco

I have tried, the same error.

If not, does it make a difference if the module is not lazy loaded?

I just mentioned it in order to show how I use it. But, no, there is no difference, I have checked it right now

sharok avatar May 13 '18 11:05 sharok

Unfortunately I haven't been able to reproduce this issue, really not sure what's going on.

Gbuomprisco avatar May 13 '18 11:05 Gbuomprisco

hello @sharok have you found any solution? , because I am facing the same issue while removing some unnecessary packages from my angular project, and trying to build the project at that time it's giving me errors same ..

ds-talaviya avatar Aug 24 '22 18:08 ds-talaviya