drusellers
Find Client Side calls preventing server render
From the docs
When importing a library that relies on browser APIs and has side effects, make sure the component importing it is only called client-side. Bundlers do not treeshake imports of modules containing side effects.How can I best find these browser apis? Can I make nuxt throw an error on build - looking for a similar error experience as Next.js has with their client side vs server side components.
8 replies
Version Mismatch (I must be doing something silly)
I have deleted my node_modules, deleted my npm lock file, deleted my .nuxt directory.
I can see in my package lock file that I have 3.11.2,
I have created a branch new vue project using nuxi, and it creates with 3.11.2 just fine. I've compared the nuxt config and the package.json file between my project and the old project
For the life of me I cannot figure out how to get my project to run as 3.11.2 (as seen by the nuxt-gtag version enforcement.
12 replies