Hello Community,
I’ve built 2 simple web applications earlier this year using Nuxt 3.2.0 and Cesium 1.102 and 1.103 respectively. I was able to get rid of the problem that Cesium would not find the CESIUM_BASE_URL variable by defining a global property in the app.vue file as follows:
Object.defineProperty(globalThis, ‘CESIUM_BASE_URL’, {
value: config.CESIUM_BASE_URL
})
After having been busy with a few other projects, I’m now back with newer versions of Nuxt3 and Cesium. As the last few updates have changed a lot in Cesium, I obviously want to use the newest version, however unfortunately I am now again getting an Error related to the CESIUM_BASE_URL even when I use the same method as above.
Has anyone else been running into this problem? Is it a problem only with running Cesium in Nuxt3?
After encountering the problem I first tried reverting the Nuxt version to 3.2.0 and then also Cesium to 1.103, but I actually kept getting the same error.
The only thing that was still different from my previous projects was the Nitro version, which I haven’t been able to change so far (asking for this in the Nuxt3 community at the same time).
I’d appreciate any pointer about how Cesium looks for the base URL, if anything changed (that I might have missed) or how I have to define it so that Cesium actually finds it …
Regards,
Jacques