vuejs / vuejs/docs

Private name Props error with TypeScript.

Open
#2,201 5 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
3.2k
Forks
5k
Avg merge
14d 17h
Merged PRs (30d)
1

Description

The following is a reproduction of the description from https://github.com/vuejs/docs/pull/2200. Credit goes fully to @olfek for reporting this issue.

Existing code snippet gives this error:

Default export of the module has or is using private name 'Props'.ts (4082)

Error fixed thanks to:
https://github.com/johnsoncodehk/volar/issues/1232#issue-1213615569

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by opening the reproduction from vuejs/docs pull request 2200 and compare the existing snippet with the linked Volar issue 1232. Identify the documentation snippet that triggers TypeScript error TS4082; done means the documented example no longer produces the private-name Props error.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.