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

missing ThirdParty/pako_inflate #5417

Closed
EvaldasVasiliauskas opened this issue Jun 5, 2017 · 19 comments
Closed

missing ThirdParty/pako_inflate #5417

EvaldasVasiliauskas opened this issue Jun 5, 2017 · 19 comments

Comments

@EvaldasVasiliauskas
Copy link

EvaldasVasiliauskas commented Jun 5, 2017

After updating to 1.34 I get kind of similar error to #5278 (probably somewhere else than before):

Cesium missing ThirdParty/pako_inflate

when using unminified version, full error:

Cesium.js:337 Uncaught Error: Cesium missing ThirdParty/pako_inflate
    at main (Cesium.js:337)
    at callDep (Cesium.js:199)
    at main (Cesium.js:332)
    at req (Cesium.js:406)
    at Cesium.js:206875
    at Object.<anonymous> (Cesium.js:206886)
    at Object.<anonymous> (Cesium.js:206886)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (cesium.service.ts:1)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (help.component.ts:11)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (index.ts:1)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (app.routes.ts:2)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (app.component.ts:35)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (index.ts:1)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (main.browser.ts:1)
    at __webpack_require__ (bootstrap 416caff…:688)
    at fn (bootstrap 416caff…:109)
    at Object.<anonymous> (cesiumHeatmapRight.js:360)
    at __webpack_require__ (bootstrap 416caff…:688)
    at bootstrap 416caff…:789
    at main.bundle.js:794

I'm using angular + webpack.

@thw0rted
Copy link
Contributor

thw0rted commented Jun 7, 2017

I've been successfully using Webpack by including Source/Cesium.js instead of Build/Cesium/Cesium.js (or Build/CesiumUnminified/Cesium.js). I'm still a Webpack newbie; ideally I'd like to just use the pre-built Cesium and not have Webpack bother trying to modularize it, but at least this way it works at all.

@zzcyrus
Copy link

zzcyrus commented Jun 11, 2017

I got the same problem so I use 1.31 version.

@jason-crow
Copy link
Contributor

Hi guys, I'm experiencing a similar issue with webpacking Cesium due to issues with loading pako_inflate/decodeGoogleEarthEnterprisePacket. I circumvent the issue by building/combining the Cesium source after deleting those 2 files to remove their dependencies, but I'm unsure what the ramifications of that might be. Is there possibly a solution to this issue? Oh and thanks for fixing the jsep issue, that was another problem when webpacking.

@hpinkos
Copy link
Contributor

hpinkos commented Jul 14, 2017

@jason-crow you're having that issue with Cesium 1.35? @ggetz do you want to look at this?

@jason-crow
Copy link
Contributor

@hpinkos , Yes, technically i'm using the 3d-tiles-vector branch, but it appears to be up to date with master. , the version is 1.35.2

@ggetz
Copy link
Contributor

ggetz commented Jul 14, 2017

Sure @hpinkos, I will take a look at this soon.

@ggetz
Copy link
Contributor

ggetz commented Jul 14, 2017

@EvaldasVasiliauskas or @jason-crow could you post your webpack configuration and directory structure to help me reproduce this? I am unable to reproduce this using the example from the blog post and Build/CesiumUnminified/Cesium.js

@543802360
Copy link

I have also encountered this problem when using Cesium 1.35 ,but 1.31 does not. Here is my repository https://github.com/543802360/express-webpack-cesium, Cesium 1.31 works well

@EduardoNogueira
Copy link

I have the same problem using react with webpack. Using 1.31 and 1.32 works fine, but with 1.35 and 1.36 i get this same error whether using Build/CesiumUnminified/Cesium.js or Build/Cesium/Cesium.js

@Harelebel
Copy link

hello, is there any WA meanwhile? Thanks

@ggetz
Copy link
Contributor

ggetz commented Sep 6, 2017

We're working on a solution for the webpack issues soon, in the meantime you may have some luck using Source/Cesium.js instead of the built version.

@ggetz ggetz mentioned this issue Sep 7, 2017
3 tasks
@mramato
Copy link
Contributor

mramato commented Oct 20, 2017

This should be addressed by our recommended webpack configuration https://cesiumjs.org/tutorials/cesium-and-webpack/

@mramato mramato closed this as completed Oct 20, 2017
@magicdawn
Copy link

magicdawn commented Dec 12, 2017

cesium is making my devtool pretty slow ... unacceptable
is there a pre built version, I dont want webpack handle the build process of cesium

@hpinkos
Copy link
Contributor

hpinkos commented Dec 12, 2017

@magicdawn the built release is available for download on our website: https://cesiumjs.org/downloads/
or through NPM, it can be found in node_modules/cesium/Build/Cesium

In the future, please ask questions like this on our forum: https://groups.google.com/forum/?hl=en#!forum/cesium-dev
The forum has much higher traffic so it is more likely someone will see your question and be able to help. It's easy for us to miss your question if you comment on a closed issue.

@mramato
Copy link
Contributor

mramato commented Dec 12, 2017

@magicdawn more specifically, the tutorial I linked to above https://cesiumjs.org/tutorials/cesium-and-webpack/ will not only provide you an optimal webpack environment for Cesium, but will cover how to sue the built version with it for fast iteration.

@magicdawn
Copy link

Oh I use webpack required cesium/Build/Cesium/Cesium.js and tell webpack not to parse the built js file. and it throw error like this issue.

After I copy file and load cesium using <script> tag, it worked.

Thanks

@thw0rted
Copy link
Contributor

I think this is linked elsewhere, but if anybody is still interested in "managing" Cesium via Webpack without the time sink of re-building it all the time, I was able to make my own Webpack DLL based on this writeup. It's a bit of a time investment but it gives you more control over the final output.

@js2me
Copy link

js2me commented Feb 13, 2018

@magicdawn Hi, please create gist of your webpack config.. r u using webpack 3.* +?

@hpinkos
Copy link
Contributor

hpinkos commented Feb 13, 2018

@js2me if you have webpack questions, our Cesium and Webpack tutorial might help you: https://cesiumjs.org/tutorials/cesium-and-webpack/

Otherwise, please ask any questions you have on our forum: https://groups.google.com/forum/?hl=en#!forum/cesium-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests