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

Handles an undefined .mtimes object #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

neil-h
Copy link

@neil-h neil-h commented Sep 29, 2022

When running WebPack I would get an error:

/path/to/project/node_modules/webpack-watch-time-plugin/index.js:77
  const changes = Object.keys(watching.watchFileSystem.watcher.mtimes);
                         ^

TypeError: Cannot convert undefined or null to object

This update will set changes to an empty array if watching.watchFileSystem.watcher.mtimes is undefined or null.

…changes as an empty array instead of using Object.keys();
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

Successfully merging this pull request may close these issues.

1 participant