Hi all,
I'm trying to get a Nuxt 3 / ArcGIS Maps SDK application off the ground, but having a hard time getting the Map.vue component to render as a <ClientOnly><Map /></ ClientOnly> with server side rendering functioning for the rest of the app. I'm getting the error 500 element is not defined. I've tried to match the example configs from the esri github repo, but its written in Nuxt 2, and doesn't seem to work. My app will work if you set 'ssr: false' in nuxt.config.ts
export default defineNuxtConfig({
devtools: { enabled: true },
modules: [
'@pinia/nuxt',
'vuetify-nuxt-module'
],
css: ['~/assets/css/main.css'],
build: {
transpile: ['@arcgis/core']
},
// Uncomment to get app to work
// ssr: false,
});
The repo for my boilerplate project is attached here. If anyone has some time to look over the code and let me know where the map rendering is breaking that would be a huge help. I would also be happy to add more information here about anything if need be.
Thanks,
Jack