kentcdodds/mdx-bundler

Dependency issue

kwiat1990 opened this issue · 3 comments

  • mdx-bundler version: ^9.0.1
  • node version: 16.4.2
  • npm version: 8.13.2

What you did:
I wanted to update Remix to newest version 1.7.0.

What happened:
I'm getting following error from npm:

Command failed: npm install --save-dev @remix-run/dev@1.7.0 @remix-run/eslint-config@1.7.0 eslint@8.23.0 --color=always
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR! 
npm ERR! While resolving: mdx-bundler@9.0.1
npm ERR! Found: esbuild@0.15.6
npm ERR! node_modules/esbuild
npm ERR!   peer esbuild@"*" from @esbuild-plugins/node-modules-polyfill@0.1.4
npm ERR!   node_modules/@esbuild-plugins/node-modules-polyfill
npm ERR!     @esbuild-plugins/node-modules-polyfill@"^0.1.4" from @remix-run/dev@1.7.0
npm ERR!     node_modules/@remix-run/dev
npm ERR!       dev @remix-run/dev@"1.7.0" from the root project
npm ERR!   peer esbuild@"*" from @esbuild-plugins/node-resolve@0.1.4
npm ERR!   node_modules/@esbuild-plugins/node-resolve
npm ERR!     @esbuild-plugins/node-resolve@"^0.1.4" from mdx-bundler@9.0.1
npm ERR!     node_modules/mdx-bundler
npm ERR!       mdx-bundler@"^9.0.1" from the root project
npm ERR!   3 more (@mdx-js/esbuild, @yarnpkg/esbuild-plugin-pnp, the root project)
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer esbuild@"0.11.x || 0.12.x || 0.13.x || 0.14.x" from mdx-bundler@9.0.1
npm ERR! node_modules/mdx-bundler
npm ERR!   mdx-bundler@"^9.0.1" from the root project
npm ERR! 
npm ERR! Conflicting peer dependency: esbuild@0.14.54
npm ERR! node_modules/esbuild
npm ERR!   peer esbuild@"0.11.x || 0.12.x || 0.13.x || 0.14.x" from mdx-bundler@9.0.1
npm ERR!   node_modules/mdx-bundler
npm ERR!     mdx-bundler@"^9.0.1" from the root project

Can we get a new release to bump mdx-bundler's version requirements to include es-build@0.15.x ?

Looks like the following PR may be all we need: #188

magoz commented

Same here