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
NPM missing peer-dependencies #28150
Comments
We'd welcome a PR, or three! However, note that the updates should be made in the relevant plugins' directories, not on Superset's main package.json. I thought we had everything all set with the node18 upgrade, but perhaps the package-lock file also needs an update thanks to the newer npm version, too. |
After a bit more investigation, it seems that I had Sorry for the confusion, I'm pretty sure that both, this issue and #21799 can be closed. |
Bug description
Follow-up on this issue : #21799
I see two problems, the first one being the use of an unsupported Node version 16, while the package.json specifies that the Node version must be
^18.19.1
, which is also the version used in the docker-compose.yml. This is despite the fact that the current package-lock.json seems to have been generated with Node 16.As suggested by others, another problem are the missing peer-dependencies, namely
currencyformat.js
but alsoglobal-box
. Interestingly enough, when installing all dependencies for superset-frontend with Node 18 and then trying to start the dev-server I get an error about another missing peer-dependency@react-spring/web
.As a solution I could submit a PR that installs the following packages:
@react-spring/web@^9.7.3
in the superset-frontend root, as required by@visx/xychart
global-box@^1.2.0
inplugins/plugin-chart-word-cloud
, as required byencodable
currencyformatter.js@^1.0.5
inplugins/plugin-chart-handlebars
, as required byjust-handlebars-helpers
How to reproduce the bug
rm -rf node_modules
.npm i
.npm run dev-server
.Errors like "Can't resolve '@react-spring/web'" appear.
Screenshots/recordings
No response
Superset version
master / latest-dev
Python version
Not applicable
Node version
Not applicable
Browser
Not applicable
Additional context
No response
Checklist
The text was updated successfully, but these errors were encountered: