Skip to content
This repository has been archived by the owner on Apr 6, 2023. It is now read-only.

fix(nuxt): add #components alias to tsconfig #6634

Merged
merged 2 commits into from
Aug 15, 2022
Merged

Conversation

danielroe
Copy link
Member

πŸ”— Linked issue

resolves nuxt/nuxt#14589

❓ Type of change

  • πŸ“– Documentation (updates to the documentation or readme)
  • 🐞 Bug fix (a non-breaking change that fixes an issue)
  • πŸ‘Œ Enhancement (improving an existing functionality like performance)
  • ✨ New feature (a non-breaking change that adds functionality)
  • ⚠️ Breaking change (fix or feature that would cause existing functionality to change)

πŸ“š Description

This PR adds type support for importing from #components. (For now, you can import from #build/components with type support.)

πŸ“ Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@danielroe danielroe added bug Something isn't working types πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage labels Aug 15, 2022
@danielroe danielroe requested a review from pi0 August 15, 2022 11:24
@danielroe danielroe self-assigned this Aug 15, 2022
@netlify
Copy link

netlify bot commented Aug 15, 2022

βœ… Deploy Preview for nuxt3-docs canceled.

Name Link
πŸ”¨ Latest commit 60eade6
πŸ” Latest deploy log https://app.netlify.com/sites/nuxt3-docs/deploys/62fa43a88175d50008df2804

@pi0 pi0 merged commit 8a28c43 into main Aug 15, 2022
@pi0 pi0 deleted the fix/components-type-alias branch August 15, 2022 13:10
@HomWang
Copy link
Contributor

HomWang commented Aug 15, 2022

@danielroe @pi0
Pull new code
New problems arise
[nuxt] [request error] [unhandled] [500] Cannot read properties of undefined (reading 'headers')

@HomWang
Copy link
Contributor

HomWang commented Aug 15, 2022

step:

  1. npx yarn install
  2. yarn dev
  3. [nuxt] [request error] [unhandled] [500] [vite-node] Failed to load /.nuxt/components

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
3.x bug Something isn't working πŸ”¨ p3-minor-bug Priority 3: a bug in an edge case that only affects very specific usage types
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot find module '#components' or its corresponding type declarations.
3 participants