Skip to content

fix: prop value is symbol and invalid type throw error in dev#7809

Closed
virgosoy wants to merge 1 commit into
vuejs:mainfrom
virgosoy:patch-1
Closed

fix: prop value is symbol and invalid type throw error in dev#7809
virgosoy wants to merge 1 commit into
vuejs:mainfrom
virgosoy:patch-1

Conversation

@haoqunjiang

This comment was marked as resolved.

@haoqunjiang haoqunjiang closed this Jun 5, 2024
@skirtles-code

Copy link
Copy Markdown
Contributor

@sodatea I think this should be reopened, I believe you misunderstood the author's intent.

The type mismatch on the prop was intentional. The problem being fixed here is that the warning message isn't generated correctly.

@haoqunjiang

Copy link
Copy Markdown
Member

Oops. Sorry. Reopened.

@haoqunjiang haoqunjiang reopened this Jun 5, 2024
@skirtles-code

Copy link
Copy Markdown
Contributor

#8539 seems to be a similar idea.

@edison1105 edison1105 added the duplicate This issue or pull request already exists label Aug 27, 2024
@edison1105

Copy link
Copy Markdown
Member

Duplicate of #8539

@edison1105

Copy link
Copy Markdown
Member

Closing in favor of #8539, which covers the full prop validation Symbol case: it guards Symbol before String/Number coercion and avoids adding coercion-style value details for Symbol warnings.

@edison1105 edison1105 closed this May 6, 2026
@github-project-automation github-project-automation Bot moved this from Needs Review to Rejected in Issue / PR Management May 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

duplicate This issue or pull request already exists

Projects

Status: Rejected

Development

Successfully merging this pull request may close these issues.

(runtime-core): Runtime error when mistakenly converting symbols to a string during props validation

4 participants