Skip to content
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

Failed in reproduce viz generation #1

Open
tonyalves opened this issue Jan 28, 2022 · 2 comments
Open

Failed in reproduce viz generation #1

tonyalves opened this issue Jan 28, 2022 · 2 comments

Comments

@tonyalves
Copy link

Hi! I followed the tutorial, but it shows somes errors.
1: When the command "yo @superset-ui/superset" is executed, is generated the package-lock.json, while in my is not.
So the command "npm ci" doesn't work because it lacks this file.
2: When I try to run npm i to add the package-lock.json, I get some errors, like:

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: [email protected] npm ERR! Found: [email protected] npm ERR! node_modules/react npm ERR! peer react@"^16.13.1" from the root project npm ERR! peer react@"^16.13.1" from @superset-ui/[email protected] npm ERR! node_modules/@superset-ui/core npm ERR! peer @superset-ui/core@"*" from the root project npm ERR! @superset-ui/core@"0.18.25" from @superset-ui/[email protected] npm ERR! node_modules/@superset-ui/chart-controls npm ERR! peer @superset-ui/chart-controls@"*" from the root project npm ERR! 5 more (@emotion/react, @emotion/styled, react-loadable, ...) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"17.0.2" from [email protected] npm ERR! node_modules/react-dom npm ERR! peer react-dom@">=16.9.0" from [email protected] npm ERR! node_modules/antd npm ERR! peer antd@"^4.9.4" from @superset-ui/[email protected] npm ERR! node_modules/@superset-ui/chart-controls npm ERR! peer @superset-ui/chart-controls@"*" from the root project

3 - I try use "npm i --force", it's executed, but the command "npm run dev" fails.

How can I fix these issues?

Yeoman: 4.3.0
NPM: 8.4.0

Thanks!

@Drakeguard
Copy link

Drakeguard commented Feb 1, 2022

It seems to work with NPM: 6.14.16 - for linux (with npm install)

@villebro
Copy link
Contributor

villebro commented Apr 27, 2022

@tonyalves did you install locally the Yeoman generator from master branch of apache/superset as instructed in the docs and the blog post?

The post-monorepo generator hasn't yet been released (will be published once 1.5.0 ships), so you can't yet install directly from npm.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants