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

Webpack not found #9085

Closed
3 tasks done
alexbeletsky opened this issue Feb 4, 2020 · 4 comments
Closed
3 tasks done

Webpack not found #9085

alexbeletsky opened this issue Feb 4, 2020 · 4 comments
Labels
inactive Inactive for >= 30 days

Comments

@alexbeletsky
Copy link

alexbeletsky commented Feb 4, 2020

Application hangs after login with admin account.

Expected results

The application is up and running

Actual results

The application stuck right after login:

Screenshot 2020-02-04 at 18 06 09

How to reproduce the bug

  1. git clone
  2. docker-compose up
  3. open http://localhost:8088/
  4. login with admin/admin

Environment

(please complete the following information):

  • superset version: current master 540df26
  • python version: python --version
  • node.js version: node -v
  • npm version: npm -v

Checklist

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Additional context

superset-node_1    | audited 906857 packages in 74.627s
superset-node_1    |
superset-node_1    | 1 package is looking for funding
superset-node_1    |   run `npm fund` for details
superset-node_1    |
superset-node_1    | found 2 moderate severity vulnerabilities
superset-node_1    |   run `npm audit fix` to fix them, or `npm audit` for details
superset-node_1    |
superset-node_1    | > superset@0.999.0-dev dev /app/superset/assets
superset-node_1    | > webpack --mode=development --colors --progress --debug --watch
superset-node_1    |
superset-node_1    | sh: 1: webpack: not found
superset-node_1    | npm ERR! code ELIFECYCLE
superset-node_1    | npm ERR! syscall spawn
superset-node_1    | npm ERR! file sh
superset-node_1    | npm ERR! errno ENOENT
superset-node_1    | npm ERR! superset@0.999.0-dev dev: `webpack --mode=development --colors --progress --debug --watch`
superset-node_1    | npm ERR! spawn ENOENT
superset-node_1    | npm ERR!
superset-node_1    | npm ERR! Failed at the superset@0.999.0-dev dev script.
superset-node_1    | npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
@willbarrett
Copy link
Member

Hi @alexbeletsky - thanks for the report. I just ran into this problem myself this AM. I'm trying to find the source of the problem now.

@saltict
Copy link

saltict commented Mar 16, 2020

@alexbeletsky I have same issue like you and I resolved it.

You need to replace line command of superset-node in docker compose with this:
command: ["bash", "-c", "cd /app/superset-frontend && npm install --global webpack webpack-cli && npm install && npm run dev"]

@willbarrett
Copy link
Member

Thanks for the suggestion @saltict - I've opened a PR with the change.

@stale
Copy link

stale bot commented May 15, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

@stale stale bot added the inactive Inactive for >= 30 days label May 15, 2020
@stale stale bot closed this as completed May 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
inactive Inactive for >= 30 days
Projects
None yet
Development

No branches or pull requests

3 participants