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

module not defined #541

Open
j-applese3d opened this issue Nov 4, 2022 · 0 comments
Open

module not defined #541

j-applese3d opened this issue Nov 4, 2022 · 0 comments

Comments

@j-applese3d
Copy link

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!

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

1 participant