-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[gatsby-plugin-netlify] depracated webpack-assets-manifest causing errors during build #29974
Comments
Hey @talohana - PR with upgrade would be most welcome! I can't tell from release notes of |
Working on it right now. I'm stumbling an error while running
There is a whole discussion about it here yarnpkg/yarn#7807, which the solutions are: Seems a bit hacky, has anyone else encountered this before? |
+1 for this issue. I just migrated to Gatsby v3 and updated all my plugins - one of which is the gatsby-plugin-netlify and am also seeing this issue when running the build command. I'm assuming it will get fixed by their team but wondering if there is anything we need to do in the mean time? Thanks for writing this up @talohana |
@pieh - upgrading to webpack-assets-manifest ^4.0.0 seems fine, but upgrading to ^5.0.0 throws error. After running
@talohana - you should just be able to run |
I can remove the dependency, but re-adding it raises the same error |
@talohana - that is strange. I'm able to: cd packages/gatsby-plugin-manifest
yarn remove webpack-assets-manifest
yarn add webpack-assets-manifest in order to upgrade |
Not sure if it is related but i have a similar issue. I'm migrating from gatsby v2.0 to v3.0 in my project gatsby-starter-i18n-bulma related PR: kalwalt/gatsby-starter-i18n-bulma#139.
you can look at the log here |
@kimbaudi the solution you provided
doesn't work for me. First, webpack-asset-manifest is installed in |
Same problem here in this repo agility/agility-website-gatsby#50 package.json: build error
|
@kalwalt - i'm talking about updating |
@kimbaudi i see my error. Watching the PR #30217 by @pedrolamas, sound interesting, i will test this last if i can. 😃 |
@kimbaudi tests are passing fine for me... am I missing something here? |
For me tests are passing locally, but when I try to build my site (after
|
@pedrolamas - I tested again and the tests are passing. My mistake. |
@talohana indeed, I too am seeing the same error from |
@talohana I now know what is the problem and that is with how I noticed that even after updating the "webpack-assets-manifest" dependency and linking the file to the main project, it was still using the wrong version of the dependency as the In my case, using yalc to do the linking and local tests did the trick and I now see the build passing without any errors. As such, and unless someone finds any other problem, I consider the PR worth to merge as it is right now! |
I'm on the PR review right now, just trying to get to the bottom of failing type check there, but from manual testing it seemed to be working just all right |
For folks that want workaround right now - if you use
to your package.json to force yarn to install that instead of what plugin has specified right now (unfortunaly there is no reliable equivalent workaround in npm) |
I've tried the above workaround without success, unfortunately. |
After much upgrading and cleaning, this worked for me: |
Description
I am upgrading to gatsby v3 and I am using
gatsby-plugin-netlify
, during build time I get the following errors:I have drilled down a bit and found that cause of the problem was a deprecated
webpack-assets-manifest
dependency.webpack-assets-manifest
is compatible with webpack v5 as described hereSteps to reproduce
gatsby-plugin-netlify
npm run build
Environment
System:
OS: Windows 10 10.0.19042
CPU: (8) x64 Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
Binaries:
Node: 14.15.1 - C:\Program Files\nodejs\node.EXE
npm: 6.14.8 - C:\Program Files\nodejs\npm.CMD
Browsers:
Edge: Spartan (44.19041.423.0), Chromium (88.0.705.81)
npmPackages:
gatsby: ^3.0.1 => 3.0.1
gatsby-plugin-google-analytics: ^3.0.0 => 3.0.0
gatsby-plugin-image: ^1.0.0 => 1.0.0
gatsby-plugin-manifest: ^3.0.0 => 3.0.0
gatsby-plugin-mdx: ^2.0.0 => 2.0.0
gatsby-plugin-netlify: ^3.0.0 => 3.0.0
gatsby-plugin-offline: ^4.0.0 => 4.0.0
gatsby-plugin-react-helmet: ^4.0.0 => 4.0.0
gatsby-plugin-robots-txt: ^1.5.5 => 1.5.5
gatsby-plugin-sharp: ^3.0.0 => 3.0.0
gatsby-plugin-sitemap: ^3.0.0 => 3.0.0
gatsby-plugin-styled-components: ^4.0.0 => 4.0.0
gatsby-remark-autolink-headers: ^3.0.0 => 3.0.0
gatsby-remark-copy-linked-files: ^3.0.0 => 3.0.0
gatsby-remark-embedder: ^4.1.0 => 4.1.0
gatsby-remark-images: ^4.0.0 => 4.0.0
gatsby-remark-prismjs: ^4.0.0 => 4.0.0
gatsby-source-filesystem: ^3.0.0 => 3.0.0
gatsby-transformer-sharp: ^3.0.0 => 3.0.0
I would be happy to submit a PR if needed 🚀
The text was updated successfully, but these errors were encountered: