Skip to content

Uncaught ReferenceError: Accounts is not defined #172

@Torsten85

Description

@Torsten85

Hi there,
I'm using "ostrio:files" with accounts-base and after upgrading to 1.4 I'm getting "Accounts is not defined" here:
https://github.com/VeliovGroup/Meteor-Files/blob/master/files.coffee#L507

My whole project code is inside the /imports folder, maybe thats why the package has no direct access to the formerly globals variable?

This could be easily fixed by adding:
const Accounts = Package['accounts-base'].Accounts;
on line 497.

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