scttcper/ngx-emoji-mart

Appears in the NgModule.imports of 'Module Name', but could not be resolved to an NgModule class.

jhl0214 opened this issue · 4 comments

Hi, so I am importing PickerModule in the module file of the component. There are multiple components in the project and it's going to be used as a library. They will npm install this package and use the included components. However, whenever I run npm install, I get this error: Appears in the NgModule.imports of PersistentChatModule, but could not be resolved to an NgModule class. Is it missing an @NgModule annotation?
I made sure that PickerModule is included in imports array in the module file. Does anyone know how to fix this?

Using Angular 9 and ngx-emoji-mart version 3.1.0.

how are you importing PickerModule

Followed the guide.

import { PickerModule } from '@ctrl/ngx-emoji-mart'; imports: [ ..., PickerModule]

i'm not sure, i would try removing your node_modules and re-installing

Unfortunately, that didn't work. Thanks though!