Skip to content

[Vue warn] handlers are not getting supressed on SSR #11830

@justin-john

Description

@justin-john

Vue version

3.4.37

Link to minimal reproduction

https://stackblitz.com/edit/vitejs-vite-jahlyn?file=app.js

Steps to reproduce

Run the node app.js or npm run start. I have made wrong variable reference in template with counts instead of count. So it should trigger warning logs in server terminal.

What is expected?

When we applied app.config.warnHandler = function() {}; to suppress warning code. All warning logs should be hidden in SSR.

template_wrong_variable

What is actually happening?

The [Vue warn] logs are still showing.

vue-warn-still-showing

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions