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

Can't build with browserify #2

Open
jwerle opened this issue Feb 15, 2016 · 2 comments
Open

Can't build with browserify #2

jwerle opened this issue Feb 15, 2016 · 2 comments

Comments

@jwerle
Copy link

jwerle commented Feb 15, 2016

Since vicapow/webgl-heatmap@54880b6, I've been unable to build this module.
Here is the output from my build step

 √ browserify -t babelify -t glslify app/main.js
SyntaxError: Unexpected token (1:10) while parsing file: /Users/jwerle/repos/littlstar/creators/node_modules/webgl-heatmap/vertex-shader-blit.glsl
    at Parser.pp.raise (/Users/jwerle/repos/littlstar/creators/node_modules/acorn/dist/acorn.js:1745:13)
    at Parser.pp.unexpected (/Users/jwerle/repos/littlstar/creators/node_modules/acorn/dist/acorn.js:2264:8)
    at Parser.pp.semicolon (/Users/jwerle/repos/littlstar/creators/node_modules/acorn/dist/acorn.js:2243:59)
    at Parser.pp.parseExpressionStatement (/Users/jwerle/repos/littlstar/creators/node_modules/acorn/dist/acorn.js:2677:8)
    at Parser.pp.parseStatement (/Users/jwerle/repos/littlstar/creators/node_modules/acorn/dist/acorn.js:2462:160)
    at Parser.pp.parseTopLevel (/Users/jwerle/repos/littlstar/creators/node_modules/acorn/dist/acorn.js:2379:21)
    at parse (/Users/jwerle/repos/littlstar/creators/node_modules/acorn/dist/acorn.js:101:12)
    at module.exports (/Users/jwerle/repos/littlstar/creators/node_modules/falafel/index.js:22:15)
    at /Users/jwerle/repos/littlstar/creators/node_modules/static-module/index.js:30:13
    at ConcatStream.<anonymous> (/Users/jwerle/repos/littlstar/creators/node_modules/static-module/node_modules/concat-stream/index.js:36:43)
@jwerle
Copy link
Author

jwerle commented Feb 15, 2016

I noticed this addition to the glslify README and now wonder if by consequence webgl-heatmap is not compatible with browserify causing this module to fail a build. I could be missing a configuration setting or step.

@vicapow
Copy link
Owner

vicapow commented Feb 19, 2016

Hey @jwerle, I updated webgl-heatmap to 0.2.3. It uses only brfs instead of browserify-shader. can you give it a try and see if this fixes your issue? ref: vicapow/webgl-heatmap@e731c7e

yocontra pushed a commit that referenced this issue Feb 12, 2018
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