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

Errors when building the bundle #1

Open
gbishop opened this issue May 1, 2017 · 2 comments
Open

Errors when building the bundle #1

gbishop opened this issue May 1, 2017 · 2 comments

Comments

@gbishop
Copy link

gbishop commented May 1, 2017

Thanks for posting this. It is just the sort of thing I need. I'm having trouble building it. Here is what I did.

  1. Cloned the repo
  2. created the virtual env
  3. installed the python dependencies
  4. tried it and it worked fine

Now I try to build the bundles. I did:

  1. npm install
  2. ./node_packages/.bin/webpack

And then I get a ton of errors starting with

Hash: e68659b38834297d914d
Version: webpack 1.15.0
Time: 3540ms
                         Asset     Size  Chunks             Chunk Names
e632aa14b4f39ef201e9.worker.js  71.7 kB          [emitted]
                     bundle.js  1.74 MB       0  [emitted]  main
    + 352 hidden modules

ERROR in ./static/src/js/dashboard.js

/home/gb/tmp/system_dashboard/static/src/js/dashboard.js
  11:29  error  'worker-static-loader?{'staticPath':'static' should be listed in the project's dependencies. Run 'npm i -S worker-static-loader?{'staticPath':'static' to add it  import/no-extraneous-dependencies
  11:37  error  Unable to resolve path to module 'worker-static-loader?{'staticPath':'static/build/'}!./web_workers/web_worker_get_data.js'                  import/no-unresolved
  28:21  error  Expected 'this' to be used by class method 'handelDataChange'                  class-methods-use-this
  29:18  error  'key' is never reassigned. Use 'const' instead                  prefer-const

✖ 4 problems (4 errors, 0 warnings)

I'm a relative newb so I'm likely doing something incorrectly.

@SagiMedina
Copy link
Owner

Well, those are just eslint errors (Airbnb style guidelines). You should be able to build without any problem.
I will fixed them any way... Perps I should update all the libraries to latest.

@gbishop
Copy link
Author

gbishop commented May 3, 2017

Oh! I saw the errors and didn't even look to see that the build succeeded. Thanks.

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

2 participants