ryanwiemer / gatsby-theme-amsterdam

A Gatsby theme for artists, photographers and other creative folks 👨‍🎨
https://amsterdam.netlify.app/
MIT License
138 stars 34 forks source link

[Bug/build] Conflicting versions of eslint breaks build #20

Open jamecoyne opened 2 years ago

jamecoyne commented 2 years ago

Hi,

I encountered a strange issue when trying to build a new version of my personal site built with this theme on Gitlab where I merged a commit that only changed the markdown content of one page.

In essence, it seems if I'm understanding correctly there's a conflict between versions of eslint that the theme uses and the eslint that gatsby uses?

npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: gatsby-starter-amsterdam@2.0.1
npm ERR! Found: eslint@8.23.0
npm ERR! node_modules/eslint
npm ERR!   dev eslint@"^8.3.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer eslint@"^7.23.0" from eslint-config-gatsby-standard@3.0.2
npm ERR! node_modules/eslint-config-gatsby-standard
npm ERR!   dev eslint-config-gatsby-standard@"^3.0.2" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 

Not sure if I'm understanding this correctly.

Since then I've tried.

All roads seem to lead to this error, and I'm not sure what I'm doing wrong here - any advice would be very much appreciated.

meninoebom commented 2 years ago

I'm having the same issue.

jamecoyne commented 2 years ago

woo, glad I'm not the only one having that issue. I'll ping a friend with more experience with build issues and let you know if we find a solution.

spolanski commented 11 months ago

Anyone managed to solve the issue? I am experiencing the same thing