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
When building the library I'm working on, while trying to attempt to upgrade from Pixi 6 to Pixi 7, I'm getting an error that containers don't have the name property like they should. Note that there is no packaging, this is just running a tsc over the files like so: node node_modules/typescript/bin/tsc --importHelpers.
src/renderers/components/SlicedGraphic.ts:214:28 - error TS2339: Property 'name' does not exist on type 'Container'.
214 this.elementsGroup.name = `${this.GameObject.name} - Slices`;
I didn't have a package-lock.json, but added one and verified that everything says 7.2.4 in there for Pixi things. I have also verified that the node_modules/pixi.js/lib/index.d.ts file includes the correct mixin.
Expected Behavior
Ideally this would build without error.
Steps to Reproduce
I'm currently working on making a small repro repo, but don't have one quite yet.
the name property is renamed in v8 to "label". can you check if you maybe have a "label" property?
if you didn't had a package-lock.json, you should not create one manually. i understood that you create one manually? (if using bun, then the file is not present, which is ok). Usually the file is automatically created with npm i
Doesn't look like I've got a label property either. What I meant for the package-lock.json is that it's disabled for the repo in my .npmrc and I could re-enable it to create one.
Current Behavior
When building the library I'm working on, while trying to attempt to upgrade from Pixi 6 to Pixi 7, I'm getting an error that containers don't have the name property like they should. Note that there is no packaging, this is just running a
tsc
over the files like so:node node_modules/typescript/bin/tsc --importHelpers
.I didn't have a package-lock.json, but added one and verified that everything says
7.2.4
in there for Pixi things. I have also verified that thenode_modules/pixi.js/lib/index.d.ts
file includes the correct mixin.Expected Behavior
Ideally this would build without error.
Steps to Reproduce
I'm currently working on making a small repro repo, but don't have one quite yet.
Environment
pixi.js
version: 7.2.4Possible Solution
None yet
Additional Information
Here's the
tsconfig.json
file:And here's the relevant package.json file
The text was updated successfully, but these errors were encountered: