Jump to content

TypeScript issues when upgrading pixi.js from verison 5.1.1 to 6.04.


Recommended Posts


My project is using 5.1.1 version of Pixi.js, however I decided to upgrade it to version 6.0.4, which presumably is the latest one and is also the version that I am most comfortable with. Unfortunately, after upgrading the version I get many errors from TypeScript, which does not recognize most of the classes like PIXI.Spritesheet, PIXI.Texture and etc. It says namespcae "PIXI" has no exported member 'Texture'. 

Here is my tsconfig.json

	"compilerOptions": {
		"target": "es6",
		"lib": ["es2015", "dom"],
		"module": "commonjs",
		"typeRoots": ["./typings", "./node_modules/@types"],
		"noImplicitAny": true,
		"strictFunctionTypes": true,
		"alwaysStrict": true,
		"resolveJsonModule": true,
		"esModuleInterop": true
	"exclude": ["./templates"]

Then as you can see I have a ./typings folder, there I have other sub-directories like this:

Most of the errors are in typings>pixi-tiled>index.d.ts. Where I get this errrors


However, in other files when I do

import * as PIXI from 'pixi.js';

I can access all PIXI classes without any issue.

Can you help fix this errors, because they were not happening in version 5.1.1

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...