Gatsby-plugin : no such file or directory, copyfile '/opt/build/repo/node_modules/@netlify/plugin-gatsby/src/templates/ipx.ts' -> '.netlify/functions-internal/_ipx.ts'

I’m try to use Gatsby Image CDN, related on Netlify blog but the existing repo seems outdated.
So i’ve fork the repo here, but the build fails during plugin task, and I don’t understand why …

here is the public repo (up-to-date, with Gatsby 4) to reproduce the bug.
(fork of ascorbic/wordpress-gatsby-demo)

and here is the build log error

  Plugin "@netlify/plugin-gatsby" internal error
  Error message
  Error: ENOENT: no such file or directory, copyfile '/opt/build/repo/node_modules/@netlify/plugin-gatsby/src/templates/ipx.ts' -> '.netlify/functions-internal/_ipx.ts'
  Plugin details
  Package:        @netlify/plugin-gatsby
  Version:        3.4.8
  Repository:     git+
  npm link:
  Report issues:
  Error location
  In "onBuild" event in "@netlify/plugin-gatsby" from netlify.toml and package.json
  Error properties
    errno: -2,
    code: 'ENOENT',
    syscall: 'copyfile',
    path: '/opt/build/repo/node_modules/@netlify/plugin-gatsby/src/templates/ipx.ts',
    dest: '.netlify/functions-internal/_ipx.ts'


Thank you for letting us know, @violy! We’ve passed this to the devs.

1 Like

Thank you, waiting for a solution !

Also, using gatsby-plugin-netlify with latest Gatsby V5 major version, I’ve a Warning :

warn Plugin gatsby-plugin-netlify is not compatible with your gatsby version 5.2.0 - It requires gatsby@^4.0.0