Skip to content

Auto import in nuxt brigde#38

Open
iNerdStack wants to merge 3 commits into
piniajs:mainfrom
iNerdStack:auto-import-in-nuxt-brigde
Open

Auto import in nuxt brigde#38
iNerdStack wants to merge 3 commits into
piniajs:mainfrom
iNerdStack:auto-import-in-nuxt-brigde

Conversation

@iNerdStack
Copy link
Copy Markdown

No description provided.

@iNerdStack
Copy link
Copy Markdown
Author

iNerdStack commented Jul 8, 2022

  1. Updated the tsconfig.json according to official documentation
    https://v3.nuxtjs.org/bridge/overview
    This is to prevent the need to import "ref", "defineComponent" in every component since its already being handled by Nuxt
    Also added "jsx": "react" to exclude the error "--jsx ....." in PiniaLogo.vue component.

  2. Refactored the import code for the pinia store included in index.vue to a single-line import

  3. Added custom layout and included it in index.vue to indicate how to include layout in Nuxt Bridge considering this was an issue in the discussion below.
    [worker] definePageMeta is not defined  nuxt/nuxt#13292

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant