/element-plus-nuxt-starter

🌰 WIP! A starter example for element-plus with nuxt3.

Primary LanguageVueMIT LicenseMIT

Element Plus with Nuxt 3 Minimal Starter

🏗 WIP (Work in Progress) Nuxt3 is still beta, we may need to keep updating to adapt it.

Preview: https://nuxt-starter.element-plus.org

We recommend to look at the Nuxt3 Docs and Element Plus Docs.

Setup

Make sure to install the dependencies

yarn install

Development

Start the development server on http://localhost:3000

yarn dev

More info about nuxt deployment.

You need set env NITRO_PRESET=browser to generate static html in .output/public.

Production

Build the application for production:

yarn build

Checkout the deployment documentation.

FAQ

The current ssr is a bit of a problem and is still being resolved.

Could not resolve './hooks/use-prevent-globalThis/index.js'

It is a bug when use vite with nuxt. (vite replace global with globalThis). Please be patient and wait for the fix.

https://github.com/nuxt/framework/issues/1713

Ref