SSR throws "Cannot read properties of null (reading 'isCE')" with resolveComponent
Hello everyone, I'm at my wits end with this error.
I have a branch that has been working forever and then doing npm install started triggering this error.
I'm not sure what to do - deduped Vue, checked for imports and combed the entire codebase. I can get it to work on stackblitz but not locally.
https://stackblitz.com/edit/nuxt-starter-igqupg?file=pages%2Findex.vue
If the button is SSR'd it will throw, if the button is wrapped in ClientOnly it will not.
It appears there's a problem with resolveComponent that throws in SSR.
It only throws if the button is added through the module and not if the button is imported through the npm package.
The module basically only registers components automatically from the npm package and has been working fine for a year up to today.
gianluigibitboss
StackBlitz
Nuxt - Starter (forked) - StackBlitz
Create a new Nuxt project, module, layer or start from a theme with our collection of starters.
2 Replies
GitHub
Cannot read property 'isCE' of null in remote component with slot u...
Version 3.2.2 Reproduction link https://github.com/fatawesome/vue-next-isce-issue Steps to reproduce Clone the repository, from root run yarn && lerna bootstrap && yarn start. Navig...
Thanks Alex, I tried all the solutions and what baffles me is that the same components don't throw when they are imported from the npm package, they only throw when ssr and they are imported by a module.
I tried deduping, moving to dev dependencies, changing rollup settings. I'm not sure the issue lies there