pinia-the-enjoyable-vue-store icon indicating copy to clipboard operation
pinia-the-enjoyable-vue-store copied to clipboard

Uncaught TypeError: can't access property "modules", ssrContext is undefined

Open faridsa opened this issue 1 year ago • 2 comments

after cloning and installing it, when running dev I got that error

Checking source code in browser, the offending part is here

import { useSSRContext as __vite_useSSRContext } from '/node_modules/.vite/deps/vue.js?v=e3a13ef1'
const _sfc_setup = _sfc_main.setup
_sfc_main.setup = (props, ctx) => {
  const ssrContext = __vite_useSSRContext()
  ;(ssrContext.modules || (ssrContext.modules = new Set())).add("src/App.vue")
  return _sfc_setup ? _sfc_setup(props, ctx) : undefined
}

faridsa avatar Oct 03 '22 00:10 faridsa