Skip to content

Errors when building the bundle #1

@gbishop

Description

@gbishop

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions