CesiumGS / cesium-webpack-example

The minimal recommended setup for an application using Cesium with Webpack.
Apache License 2.0
243 stars 160 forks source link

how to use the build version of cesium #43

Open codeOH opened 1 year ago

codeOH commented 1 year ago

when I use files in 'cesium/build/Cesuim' or 'cesium/build/CesuimUnminified' to work with webpack, it reports errors like module not find. But it worked with files in 'cesium/Source', so I just want to know why and how to correctly import cesium files in production mode. cesium_errors

jjspace commented 8 months ago

I'm not sure I totally understand your issue. If you didn't figure this out already can you provide some more context?

At first guess it seems like you're importing things wrong? You should be importing classes and functions from the packages you installed and not directly from the node_modules files.