Skip to content

v2.0.8

Latest
Compare
Choose a tag to compare
@jameelmoses jameelmoses released this 29 Aug 15:11
  • Fixes #141 - module.parent deprecated in Node 14+. Thanks @DaveyJake
  • Update dependencies

If you get the error Cannot read properties of undefined (reading 'filename'), this is because you're using a version of node where module.parent is undefined. To resolve, you need to add config to the plugin when instantiated with the path to your package.json file to read its dependencies. For example:

import gulpLoadPlugins from 'gulp-load-plugins';

const $ = gulpLoadPlugins({
  config: process.env.npm_package_json
});