Skip to content

module not defined #541

Description

@j-applese3d

It seems that when you have an object called "exports" defined, pace.js tries to set a property on a module. In my case module does not exist, so there's a console error.

I think that line 978:

pace/pace.js

Lines 978 to 980 in 2350e56

} else if (typeof exports === 'object') {
module.exports = Pace;
} else {

should be changed to typeof module since that appears to be the purpose anyways (set the property "exports" on the object "module")

Am I missing something here?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions