Skip to content

Auto import in nuxt brigde #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

iNerdStack
Copy link

No description provided.

@iNerdStack
Copy link
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