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 example not working #638

Closed
canselcik opened this issue Jul 1, 2019 · 1 comment · Fixed by #640
Closed

Webpack example not working #638

canselcik opened this issue Jul 1, 2019 · 1 comment · Fixed by #640

Comments

@canselcik
Copy link

Bug Report

As far as I can tell the webpack example doesn't work as is.

Steps to Reproduce:

  1. git clone https://github.com/finos/perspective
  2. cd perspective/examples/webpack
  3. npm install
  4. npm start

Expected Result:

To be able to view the example in browser.

Actual Result:

Nothing renders in browser. Seems potentially related to the less-loader and its patterns configured in webpack.config.js.
Console shows:

Uncaught Error: Module build failed: 

exports = module.exports = require("../../../../css-loader/lib/css-base.js")(false);
      ^
Unrecognised input
      in /home/main/go-tapetrade/pers/examples/webpack/node_modules/@finos/perspective-viewer/cjs/less/computed_column.less (line 1, column 8)
    at Object.<anonymous> (bundle.js:60587)
    at __webpack_require__ (bootstrap b90f129dda29cfea6fa9:19)
    at Object.<anonymous> (computed_column.less:4)
    at __webpack_require__ (bootstrap b90f129dda29cfea6fa9:19)
    at Object.<anonymous> (_freeGlobal.js:4)
    at __webpack_require__ (bootstrap b90f129dda29cfea6fa9:19)
    at Object.<anonymous> (urls.js:89)
    at __webpack_require__ (bootstrap b90f129dda29cfea6fa9:19)
    at Object.<anonymous> (index.js:13)
    at __webpack_require__ (bootstrap b90f129dda29cfea6fa9:19)

Environment:

Arch Linux (made sure python2.7 available for gyp)
Browsing with Chrome.

@texodus
Copy link
Member

texodus commented Jul 1, 2019

Thanks for the detailed report!

#640 should fix the example install - if you still have issues, feel free to reopen.

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

Successfully merging a pull request may close this issue.

2 participants