million
are you using?1.0.0-rc.26
None
npm
Linux
Chrome
Tried installing @million/lint with a Vite project running React 17.0.2. Can't start anything with errors about trying to import react-dom/client
.
react-reconciler
has a peer dep for react ^18.3.1
. This causes it to be installed by npm in node_modules/@million/lint/node_modules/react
. The code to detect the React version looks like it checks via import { version } from 'react'
which will resolve to the react version installed by the react-reconciler
peer dependency, not the version in the workspace.
Not sure if this is an npm
issue only, but the default behavior of npm 7+
is to install peer dependencies that are unmet. So it's expected behavior from npm
based on the packages.
@million/lint working with React 16.8 - 17 when using npm
https://stackblitz.com/edit/vitejs-vite-xfzbac?file=package.json
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too