Closed
Description
I'm trying to import cloudinary to my AppModule:
import { CloudinaryModule } from '@cloudinary/angular-4.x';
import * as Cloudinary from 'cloudinary-core';
@NgModule({
imports: [
CloudinaryModule.forRoot(Cloudinary, { cloud_name: 'mycloudname'})
]
})
I get the following error in runtime when I start the app via npm start
Uncaught Error: Unexpected value '[object Object]' imported by the module 'AppModule'. Please add a @NgModule annotation.
It doesn't seem to recognize the configuration object or the module itself as I import it. I'm following the instructions from this document. Am I using the right api or package for Angular 5?
Metadata
Metadata
Assignees
Labels
No labels