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

util.js error #3724

Closed
musicformellons opened this issue Nov 30, 2016 · 4 comments
Closed

util.js error #3724

musicformellons opened this issue Nov 30, 2016 · 4 comments

Comments

@musicformellons
Copy link

musicformellons commented Nov 30, 2016

When upgrading from 0.26.0 to 0.27.0 I suddenly get following error message. Of course related to deprecation of util.js but how to solve this?:

ERROR in ./~/mapbox-gl/js/util/util.js
Module build failed: SyntaxError: Unexpected token (15:35)
    at Parser.pp.raise (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:1745:13)
    at Parser.pp.unexpected (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:2264:8)
    at Parser.pp.expect (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:2258:26)
    at Parser.pp.parseBindingList (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:1884:40)
    at Parser.pp.parseFunctionParams (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:2776:22)
    at Parser.pp.parseFunction (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:2769:8)
    at Parser.pp.parseExprAtom (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:1129:19)
    at Parser.pp.parseExprSubscripts (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:1023:19)
    at Parser.pp.parseMaybeUnary (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:1004:19)
    at Parser.pp.parseExprOps (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:948:19)
    at Parser.pp.parseMaybeConditional (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:930:19)
    at Parser.pp.parseMaybeAssign (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:908:19)
    at Parser.pp.parseMaybeAssign (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:917:23)
    at Parser.pp.parseExpression (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:882:19)
    at Parser.pp.parseStatement (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:2461:23)
    at Parser.pp.parseTopLevel (/home/usr/pqqf03/node_modules/falafel/node_modules/acorn/dist/acorn.js:2379:21)
 @ ./~/mapbox-gl/js/mapbox-gl.js 26:16-38
Child html-webpack-plugin for "index.html":
         Asset     Size  Chunks       Chunk Names
    index.html  20.3 kB       0       
webpack: bundle is now VALID.
@jfirebaugh
Copy link
Contributor

Please use the dist file for webpack, as documented in the README: https://github.com/mapbox/mapbox-gl-js#using-mapbox-gl-js-with-other-module-systems

@musicformellons
Copy link
Author

@jfirebaugh Uh, but is this different from version 0.26.0 then? Because everything was working fine...with webpack...

@jfirebaugh
Copy link
Contributor

This has been required since 0.25.0. If using the non-dist file worked in 0.26.0, it was a coincidence.

@musicformellons
Copy link
Author

Thx. Works now.

PetersonGIS added a commit to PetersonGIS/editor that referenced this issue Dec 28, 2016
…pack recommendations and support Windows dev. This is addressed in mapbox/mapbox-gl-js#3724
lukasmartinelli added a commit to maplibre/maputnik that referenced this issue Dec 28, 2016
Upgraded reference to mapbox-gl to v0.29.0 to follow their latest webpack recommendations and support Windows dev. This is addressed in mapbox/mapbox-gl-js#3724
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