Skip to content

setAttribute is not a function #5919

@Tazer

Description

@Tazer

Version

2.3.4

Reproduction link

http://couldnt

Steps to reproduce

I haven't been able to make a reproduce. But our environment is:

Vue 2.3.4 with SSR that is using renderToStream. This error occurs just sometimes so it feels like a race condition or something. The error:

TypeError: i.setAttribute is not a function
    at Array.an (vendor.5d5b0bb….js:formatted:4401)
    at b (vendor.5d5b0bb….js:formatted:6822)
    at L (vendor.5d5b0bb….js:formatted:6788)
    at b (vendor.5d5b0bb….js:formatted:6825)
    at L (vendor.5d5b0bb….js:formatted:6788)
    at b (vendor.5d5b0bb….js:formatted:6825)
    at L (vendor.5d5b0bb….js:formatted:6788)
    at b (vendor.5d5b0bb….js:formatted:6825)
    at o.e.nodeOps [as __patch__] (vendor.5d5b0bb….js:formatted:6887)
    at o.e._update (vendor.5d5b0bb….js:formatted:6393)

When look in the source it's this line that breaks: https://github.com/vuejs/vue/blob/dev/src/platforms/web/runtime/modules/class.js#L40

Cause el is never null-checked.

What is expected?

The site to render correctly

What is actually happening?

Getting an client-side error that breaks the site.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions