Skip to content

Error handler info parameter is number in production (string in types) #8042

Open
@panstromek

Description

@panstromek

Vue version

[email protected]

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-3ux5cf?file=src/main.js

Steps to reproduce

https://vuejs.org/api/application.html#app-config-errorhandler says the info parameter is a string.

From reproduction link:

  1. run vite build to build production version
  2. run vite preview
  3. look at the console -> it says error info: 0, which is a number, but should be a string

From stratch

  1. attach global error handler in the app and log the info into console there
  2. add some purposeful error into any vue file
  3. build the app for production
  4. run the app and look at the console

What is expected?

Either the type should be a string|number, or the runtime version should give a string info

What is actually happening?

type of info is string in developement and number in runtime.

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    need documentationNot necessarily a bug, but proper documentation is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions