material-community-components: updating to latest version fails to compile and error as dependency missing

Describe the bug after upating to latest version I’m getting this error

ERROR in The target entry-point "material-community-components/color-picker" has missing dependencies:
 - @thebespokepixel/es-tinycolor
 - tinycolor2

To Reproduce Steps to reproduce the behavior:

  1. Go to ‘…’
  2. Click on ‘…’
  3. Scroll down to ‘…’
  4. See error

Expected behavior A clear and concise description of what you expected to happen.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context Add any other context about the problem here.

About this issue

  • Original URL
  • State: open
  • Created 4 years ago
  • Reactions: 5
  • Comments: 24 (13 by maintainers)

Most upvoted comments

@VladMstv which TypeScript version are you using? Seems to have no support for Type-only imports.

https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html

@motabass Yeah, seems like that, 3.7.5. I’ll try to upgrade it.

Same error here, old import seems not exists anymore (in the doc I still see the v7 with this import: import {MccColorPickerModule} from 'material-community-components' ) With the new import I have the same missing dependencies Already tried to delete node modules but nothing changed. I have angular 10.1.2

It looks like you import from subfolders now: import { MccColorPickerModule } from 'material-community-components/color-picker';

Same error here, old import seems not exists anymore (in the doc I still see the v7 with this import: import {MccColorPickerModule} from 'material-community-components' ) With the new import I have the same missing dependencies Already tried to delete node modules but nothing changed. I have angular 10.1.2