Comments (7)
I believe this is the same/related issue I was running into:
https://groups.google.com/d/msg/cesium-dev/TPSOorUDU2Y/VJv3SOktAAAJ
I am currently updating this project to use Webpack 4 and Cesium 1.46 to reproduce and diagnose the issue. Does that forum post identify a solution?
from cesium-webpack-example.
I can no longer reproduce my issue with the latest versions of webpack
(4.1.2
→ 4.12.0
) and various loaders (file-loader
[0.11.2
→ 1.1.11
], url-loader
[0.5.9
→ 1.0.1
]).
No matter if wasm-loader
is in my "loader stack" (module loading rules; using oneOf
w/ wasm-loader
just before file-loader
catch-all), this is what Webpack outputs
WARNING in ./node_modules/cesium/Source/ThirdParty/draco_decoder.wasm
Module parse failed: magic header not detected
You may need an appropriate loader to handle this file type.
Error: magic header not detected
at new CompileError (/app/node_modules/@webassemblyjs/helper-api-error/lib/index.js:40:109)
at parseModuleHeader (/app/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js:288:13)
at Object.decode (/app/node_modules/@webassemblyjs/wasm-parser/lib/decoder.js:1503:3)
at decode (/app/node_modules/@webassemblyjs/wasm-parser/lib/index.js:234:21)
at WebAssemblyParser.parse (/app/node_modules/webpack/lib/wasm/WebAssemblyParser.js:74:19)
at doBuild.err (/app/node_modules/webpack/lib/NormalModule.js:462:32)
at runLoaders (/app/node_modules/webpack/lib/NormalModule.js:344:12)
at /app/node_modules/loader-runner/lib/LoaderRunner.js:370:3
at iterateNormalLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:211:10)
at iterateNormalLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:218:10)
at /app/node_modules/loader-runner/lib/LoaderRunner.js:233:3
at runSyncOrAsync (/app/node_modules/loader-runner/lib/LoaderRunner.js:130:11)
at iterateNormalLoaders (/app/node_modules/loader-runner/lib/LoaderRunner.js:229:2)
at Array.<anonymous> (/app/node_modules/loader-runner/lib/LoaderRunner.js:202:4)
at Storage.finished (/app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:43:16)
at provider (/app/node_modules/enhanced-resolve/lib/CachedInputFileSystem.js:79:9)
@ ./node_modules/cesium/Source/ThirdParty sync ^.\/.*$
@ ./node_modules/cesium/Source/ThirdParty/xss.js
@ ./node_modules/cesium/Source/Core/Credit.js
@ ./node_modules/cesium/Source/Core/IonResource.js
@ ./node_modules/cesium/Source/Core/createWorldTerrain.js
@ ./src/index.js
@ multi ./scripts/config/polyfills.js ./src/index.js
My application seems to run fine even with this warning. It is not using Draco, except unless the Ion provided terrain is using Draco.
Upgrading as I did required that I provide webpack with more heap space (node --max-old-space
), and things take a bit longer to build, but it does work, even without wasm-loader
.
from cesium-webpack-example.
@nmschulte Would you mind sharing your webpack.config.js
? I am currently getting the following error:
Thank you!
from cesium-webpack-example.
@nmschulte Would you mind sharing your
webpack.config.js
?
@tkazik I can share a portion if you know what you're interested in.
from cesium-webpack-example.
Hallo, I downloaded the cesium-webpack-example and I have the following error:
cesium.js:14947 GET http://localhost:8080/ThirdParty/draco_decoder.wasm 404 (Not Found)
I can share a portion if you know what you're interested in.
Can you please share the part with the wasm loader?
from cesium-webpack-example.
Can you please share the part with the wasm loader?
@Cronopaul, I mitigated/resolved my issue by using a newer version of Webpack; Switching from Webpack v4.2.0 to Webpack v4.12.0 led to my comment here: #10 (comment)
To be clear, there is no wasm-loader
in my Webpack config (webpack.config.js
), I'm simply letting Webpack/file-loader
handle these as they like.
from cesium-webpack-example.
Thanks for your reply. I'm using Webpack v4.30.0.
from cesium-webpack-example.
Related Issues (20)
- Base url issue HOT 1
- Update for webpack4, latest cesium, and optionally vue.js? HOT 7
- Build is broken on master HOT 7
- webpack 5 example HOT 1
- module rules must have exclude: /node_modules/
- webpack >= v2.0.0 support json by default, so should omit json load configuration in webpack.config.js
- CesiumJS & Webpack Guide HOT 1
- Cesium definitely doesn't work with ES6 !!!
- Images/TimelineIcons.png is not showing
- FYI: Created a Vite example
- how to use the build version of cesium HOT 1
- createWorldTerrain not found in cesium HOT 3
- Cesium 1.110 webpack update HOT 3
- Can this allow me to use the latest version of cesium on nuxt2?
- Update the webpack tutorial with latest changes
- Is CESIUM_BASE_URL even still involved in worker setup and do they still need to be copied around? HOT 2
- Remove external node dependencies HOT 1
- splitchunks in webpack 4 HOT 5
- Include Node polyfill config HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cesium-webpack-example.