gatsby-plugin-utils
: Missing fs-extra
as a dependency.
#35164
Labels
status: confirmed
Issue with steps to reproduce the bug that’s been verified by at least one reviewer.
topic: core
Relates to Gatsby's core (e.g. page loading, reporter, state machine)
type: bug
An issue or pull request relating to a bug in Gatsby
Preliminary Checks
Description
gatsby-plugin-utils
depends on thefs-extra
module, specifically in this file:gatsby/packages/gatsby-plugin-utils/src/polyfill-remote-file/placeholder-handler.ts
Line 2 in 29b236b
However,
fs-extra
is not listed as a dependency ongatsby-plugin-utils
package.json
. This normally is not a problem becausefs-extra
is depended by other gastby modules and it is picked up as a hoisted dependency. However, when building for production (in a CD system for example), it's possible the dependency will not be there and the build will fail.I originally filed a bug with the npm team, but they determined it's a missing dependency for
gastby-plugin-utils
. See npm/cli#4178 for more reference.Reproduction Link
npm/cli#4178
Steps to Reproduce
package.json
in a new directory:Expected Result
Gatsby builds.
Actual Result
Gatsby build fails with a missing dependency of
fs-extra
.Here's my full output:
Environment
Config Flags
No response
The text was updated successfully, but these errors were encountered: