Building a Gridsome site, getting this error when building on Netlify. I can build and develop locally on my machine without and issue.
I don’t know what I’ve to do to force Netlify to rebuild from scratch. I’ve went into a failed deploy, hit the and “Clear Cache and Redeploy” option but to no avail - still getting the error below.
I’m not sure what the discrepancy is between what I have locally Vs what I’m getting on Netlify.
That link is exactly what I wanted to see, thank you!
The usual advice about conflicting versions is to specify exactly the version you use locally when you don’t have this problem. I assume you can build locally without that problem, right? Since we use npm to install your dependencies, you’ll find the docs on specifying specific versions of packages here: https://docs.npmjs.com/cli/install.html
(though you may get away with editing package.json manually and regenerating package-lock.json if you use that).
Make sure you don’t have both a yarn.lock and package-lock.json. Only have ONE of either in your project. I had both and once I removed the yarn.lock it worked.