How to load vue+cesium+webpack using webpack terrain data

No webpack simple vue + cesium can display normally
Code is as follows:
var tileset = new Cesium.Cesium3DTileset ({url:". / dachen/tileset.json"})

viewer.scene.primitives.add (tileset)

tileset.readyPromise.then (function () {.})

vue3:
export default {


}

tileset.readyPromise.thenaddurl-sharp-sharp-sharp

require:

the problem should be when webpack is built, but there is still no way to start (webpack configuration refers to online and official websites, and application environment is generated using vue-cli)

Apr.07,2021

may be the path problem of your require js


has your problem been solved? I also encountered the same problem, would like to consult your solution, thank you!

Menu