How to load a resource on the client side only in Nuxt.js
问题 I'm trying to build an app using Tone.js on top of Nuxt.js. Tone.js requires the browser's Web Audio API and as Nuxt renders stuff on the server side my build keeps failing. Nuxt addresses this in the plugin documentation and I've followed that approach in my nuxt.config.js file writing: module.exports = { plugins: [{src: '~node_modules/tone/build/Tone.js', ssr: false }], } however that results in this error: [nuxt] Error while initializing app TypeError: Cannot read property 'isUndef' of