Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.02 KB

workarounds.md

File metadata and controls

36 lines (25 loc) · 1.02 KB

Workarounds

Some issues that arose during the Nuxt3 Upgrade were worked around. These should be undone, but until that time we at least document them here:

sourcemap points to missing sourcefiles

This error occurred (at least) in dev mode.

Worked around this by disabling sourcemaps in `nuxt.config.ts``

  sourcemap: {
    server: false,
    client: false,
  }

According to: vuetifyjs/vuetify-loader#290

invalid requests when using custimizing vuetify using sass

Using SASS variables with Vuetify caused invalid requests to be made. Worked around this by adding a server plugin that removes the offending null character in these requests.

See server/plugins/vuetify.fix.ts

export default defineNitroPlugin((nitroApp) => {
  nitroApp.hooks.hook('render:response', (response: any) => {
    response.body = response.body.replaceAll('/_nuxt/\0', '/_nuxt/')
  })
})

According to: nuxt/nuxt#15412 (comment)