⚗️ Nuxt.js <> Stencil.js Module
Easy Stencil.js component library integration with Nuxt.js.
⚠️ Known issue: Mismatching nodes during client-side hydration
Setup
Install with yarn:
yarn add nuxt-stencil
Install with npm:
npm install nuxt-stencil
nuxt.config.js
module.exports =;
How it works
This module has multiple functionalities:
- It creates two hooks for SSR & Generate, using
render:route
&generate:page
, it will render the stencil components before sending back the request to the browser. - It injects a plugin for CSR to define the custom elements from your stencil library.
- It configures
Vue.config.ignoredElements
to ignore custom elements from your stencil library.
Development
- Clone this repository
- Install dependencies using
yarn install
ornpm install
- Start development server using
yarn dev
ornpm run dev