You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 also global-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:
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 legacy-peer-deps enabled globally in the Node 18 version of my work laptop. Without this, the peer dependencies are correctly installed and also the lock-file doesn't have any changes anymore. I would guess that this is also the cause for the problem that the original author of the issue had, since peer-deps are installed since npm >=7.
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: