Skip to content

I can't import CloudinaryModule to my Angular 5 app #117

Closed
@Jonathan002

Description

@Jonathan002

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions