Akryum / vue-cli-plugin-ssr

:sparkles: Simple SSR plugin for Vue CLI
https://vue-cli-plugin-ssr.netlify.com/
MIT License
444 stars 69 forks source link

Initializer provides no value for this binding element and the binding element has no default value #248

Closed kevinG73 closed 3 years ago

kevinG73 commented 3 years ago

Hello , i use vue 2 with typescript , i can't build i get this error :

ERROR in ../src/main.ts(26,34):
26:34 Initializer provides no value for this binding element and the binding element has no default value.
    24 | 
    25 | // eslint-disable-next-line no-unused-vars
  > 26 | export async function createApp({context, beforeApp = () => {}, afterApp = () => {}} = {}) {
       |                                  ^
    27 |     const router = createRouter()
    28 |     const store = createStore()
    29 | 

ERROR in ../src/main.ts(30,21):
30:21 Expected 0 arguments, but got 1.
    28 |     const store = createStore()
    29 | 
  > 30 |     await beforeApp({
       |                     ^
    31 |         router,
    32 |         store
    33 |     })