You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OMException: Failed to execute 'querySelector' on 'Element': '#$i-a5df4c33-a8f3-40f3-80ec-f66d5b59907d-list .dropdown-content' is not a valid selector.
#25
Open
mebibou opened this issue
Mar 23, 2021
· 4 comments
Because of minification during build, the this.contructor.namehere gets replace by $i sometimes. This causes the error as stated in the issue title.
Could this be replaces by a const? I'm not sure using the constructor thing brings anything really
The text was updated successfully, but these errors were encountered:
Same or similar issue here.
In my case, this.constructor.name is an empty string, so this.id will be e.g. -4e008ed8-4a89-4b4f-83b1-e613822ef3a6. This is an invalid value for an html id. The whole component fails because of this.
Warning: Be careful when using Function.name and source code transformations, such as those carried out by JavaScript compressors (minifiers) or obfuscators. These tools are often used as part of a JavaScript build pipeline to reduce the size of a program prior to deploying it to production. Such transformations often change a function's name at build-time.
So it's apparently not good practise to rely on a function's name.
Because of minification during build, the
this.contructor.name
here gets replace by$i
sometimes. This causes the error as stated in the issue title.Could this be replaces by a
const
? I'm not sure using the constructor thing brings anything reallyThe text was updated successfully, but these errors were encountered: