Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Jonathan002 opened this issue Nov 18, 2017 · 2 comments
Closed

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

Jonathan002 opened this issue Nov 18, 2017 · 2 comments

Comments

@Jonathan002
Copy link

Jonathan002 commented Nov 18, 2017

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?

@eitanp461
Copy link
Contributor

@Jonathan002 Angular 5 is not supported yet, we'll be releasing the new SDK version later this week, see #114

@Jonathan002
Copy link
Author

Ok thanks for the quick response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants