Closed kekkorider closed 8 months ago
Hi, @RenaudRohlinger quick question about this one, debugging a little seems like the problem is that StatsGl his version still uses StatsGl.Container
That is a photo in my local with all dependencies updated.
In the Cientos Playground works fine with StatsGl.dom. The fix is easy, just check if StatsGl.dom is empty, to use StatsGl.Container. But I'm curious about why this happened. Do you have any Idea?
It's super odd, I just checked the source published on npm and everything points to .dom and there is a fallback available:
get container() {
console.warn("Stats: Deprecated! this.container as been replaced to this.dom ");
return this.dom;
}
For example if using the source code from the pnpm-lock
file in the example:
https://registry.npmjs.org/stats-gl/-/stats-gl-2.0.1.tgz
To be honest I have no idea for the solution except the patch proposed on cientos side.
@RenaudRohlinger thanks for answer so fast, and no problem the solution is not difficult.
I just wanted to know why could happen, :) have a nice day
Describe the bug
While upgrading all the packages in my starter I noticed that
<StatsGl />
doesn't work and triggers the following error:Reproduction
https://stackblitz.com/github/kekkorider/vue-tres-starter/tree/feat/cientos-3.7.0
Steps to reproduce
If you remove the
<StatsGl />
component Insrc/App.vue
the error is gone.System Info
Used Package Manager
pnpm
Code of Conduct