Skip to content
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

Trello is undefined #3

Closed
nicgirault opened this issue Nov 25, 2015 · 3 comments
Closed

Trello is undefined #3

nicgirault opened this issue Nov 25, 2015 · 3 comments

Comments

@nicgirault
Copy link

Hi @acidstudios !

Thank you for this librairy!

I got the error "Trello is undefined" that I solved adding

<script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="https://api.trello.com/1/client.js?key=[AppKey]"></script>

on my index.html.

The best fix would be to avoid to have to add the scripts in the index.html.
An alternative solution would be to add the lines in your readme.

Or am I missing something?

Thank you

@tavobarrientos
Copy link
Member

Hello @nicgirault!

Well, the library automatically add the trello API when is loaded.

Can you send me a screenshot of your console pls.

@nicgirault
Copy link
Author

The screenshot does not say a lot but Trello is not defined. My analysis is the following:

My code

app.config(function(TrelloApiProvider) {
  return TrelloApiProvider.init({
    key: '...',
    secret: '...',
    scopes: {
      read: true,
      write: true,
      account: true
    },
    AppName: '...'
  });
});

is called before the 'trello' module "run" block (where you load the Trello variable). Am I right?

@tavobarrientos
Copy link
Member

It runs before Trello API its loaded, the problem was fixed.

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