question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Many Typescript errors in Pixi 7

See original GitHub issue
Error: node_modules/@pixi/accessibility/lib/AccessibilityManager.d.ts:1:15 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

1 import type { Rectangle, IRenderer, ExtensionMetadata } from '@pixi/core';
                ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/accessibility/lib/AccessibilityManager.d.ts:1:26 - error TS2724: '"@pixi/core"' has no exported member named 'IRenderer'. Did you mean 'Renderer'?

1 import type { Rectangle, IRenderer, ExtensionMetadata } from '@pixi/core';
                           ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:3386:22
    3386 export declare class Renderer extends AbstractRenderer {
                              ~~~~~~~~
    'Renderer' is declared here.


Error: node_modules/@pixi/app/lib/Application.d.ts:2:15 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

2 import type { Rectangle, IRendererOptionsAuto, IRenderer } from '@pixi/core';
                ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/app/lib/Application.d.ts:2:48 - error TS2724: '"@pixi/core"' has no exported member named 'IRenderer'. Did you mean 'Renderer'?

2 import type { Rectangle, IRendererOptionsAuto, IRenderer } from '@pixi/core';
                                                 ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:3386:22
    3386 export declare class Renderer extends AbstractRenderer {
                              ~~~~~~~~
    'Renderer' is declared here.


Error: node_modules/@pixi/app/lib/Application.d.ts:4:15 - error TS2305: Module '"@pixi/settings"' has no exported member 'ICanvas'.      

4 import type { ICanvas } from '@pixi/settings';
                ~~~~~~~


Error: node_modules/@pixi/assets/lib/AssetExtension.d.ts:12:30 - error TS2694: Namespace '".../node_modules/@pixi/extensions/index".ExtensionType' has no exported member 'Asset'.

12     extension: ExtensionType.Asset;
                                ~~~~~


Error: node_modules/@pixi/compressed-textures/lib/parsers/parseKTX.d.ts:1:26 - error TS2459: Module '"@pixi/core"' declares 'FORMATS' locally, but it is not exported.

1 import { BufferResource, FORMATS, TYPES } from '@pixi/core';
                           ~~~~~~~

  node_modules/@pixi/core/index.d.ts:14:10
    14 import { FORMATS } from '@pixi/constants';
                ~~~~~~~
    'FORMATS' is declared here.


Error: node_modules/@pixi/compressed-textures/lib/parsers/parseKTX.d.ts:1:35 - error TS2459: Module '"@pixi/core"' declares 'TYPES' locally, but it is not exported.

1 import { BufferResource, FORMATS, TYPES } from '@pixi/core';
                                    ~~~~~

  node_modules/@pixi/core/index.d.ts:29:10
    29 import { TYPES } from '@pixi/constants';
                ~~~~~
    'TYPES' is declared here.


Error: node_modules/@pixi/events/lib/EventBoundary.d.ts:3:10 - error TS2459: Module '"@pixi/core"' declares 'Point' locally, but it is not exported.

3 import { Point, utils } from '@pixi/core';
           ~~~~~

  node_modules/@pixi/core/index.d.ts:23:10
    23 import { Point } from '@pixi/math';
                ~~~~~
    'Point' is declared here.


Error: node_modules/@pixi/events/lib/EventBoundary.d.ts:3:17 - error TS2305: Module '"@pixi/core"' has no exported member 'utils'.       

3 import { Point, utils } from '@pixi/core';
                  ~~~~~


Error: node_modules/@pixi/events/lib/EventSystem.d.ts:3:53 - error TS2459: Module '"@pixi/core"' declares 'IPointData' locally, but it is not exported.

3 import type { IRenderableObject, ExtensionMetadata, IPointData } from '@pixi/core';
                                                      ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:16:15
    16 import type { IPointData } from '@pixi/math';
                     ~~~~~~~~~~
    'IPointData' is declared here.


Error: node_modules/@pixi/events/lib/EventSystem.d.ts:4:15 - error TS2305: Module '"@pixi/settings"' has no exported member 'ICanvas'.   

4 import type { ICanvas } from '@pixi/settings';
                ~~~~~~~


Error: node_modules/@pixi/events/lib/FederatedEvent.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'Point' locally, but it is not exported.

1 import { Point } from '@pixi/core';
           ~~~~~

  node_modules/@pixi/core/index.d.ts:23:10
    23 import { Point } from '@pixi/math';
                ~~~~~
    'Point' is declared here.


Error: node_modules/@pixi/events/lib/FederatedEventTarget.d.ts:1:15 - error TS2305: Module '"@pixi/core"' has no exported member 'utils'.

1 import type { utils } from '@pixi/core';
                ~~~~~


Error: node_modules/@pixi/events/lib/FederatedMouseEvent.d.ts:2:10 - error TS2459: Module '"@pixi/core"' declares 'Point' locally, but it is not exported.

2 import { Point } from '@pixi/core';
           ~~~~~

  node_modules/@pixi/core/index.d.ts:23:10
    23 import { Point } from '@pixi/math';
                ~~~~~
    'Point' is declared here.


Error: node_modules/@pixi/extract/lib/Extract.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

1 import { Rectangle, RenderTexture } from '@pixi/core';
           ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/extract/lib/Extract.d.ts:4:15 - error TS2305: Module '"@pixi/settings"' has no exported member 'ICanvas'.      

4 import type { ICanvas } from '@pixi/settings';
                ~~~~~~~


Error: node_modules/@pixi/filter-blur/lib/BlurFilter.d.ts:1:18 - error TS2459: Module '"@pixi/core"' declares 'CLEAR_MODES' locally, but it is not exported.

1 import { Filter, CLEAR_MODES } from '@pixi/core';
                   ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:9:10
    9 import { CLEAR_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'CLEAR_MODES' is declared here.


Error: node_modules/@pixi/filter-blur/lib/BlurFilter.d.ts:3:15 - error TS2459: Module '"@pixi/core"' declares 'BLEND_MODES' locally, but it is not exported.

3 import type { BLEND_MODES, FilterSystem, RenderTexture } from '@pixi/core';
                ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:6:10
    6 import { BLEND_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'BLEND_MODES' is declared here.


Error: node_modules/@pixi/filter-blur/lib/BlurFilterPass.d.ts:1:18 - error TS2459: Module '"@pixi/core"' declares 'CLEAR_MODES' locally, but it is not exported.

1 import { Filter, CLEAR_MODES } from '@pixi/core';
                   ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:9:10
    9 import { CLEAR_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'CLEAR_MODES' is declared here.


Error: node_modules/@pixi/filter-color-matrix/lib/ColorMatrixFilter.d.ts:2:15 - error TS2305: Module '"@pixi/core"' has no exported member 'utils'.

2 import type { utils } from '@pixi/core';
                ~~~~~


Error: node_modules/@pixi/filter-displacement/lib/DisplacementFilter.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'Matrix' locally, but it is not exported.

1 import { Matrix, Point, Filter } from '@pixi/core';
           ~~~~~~

  node_modules/@pixi/core/index.d.ts:20:10
    20 import { Matrix } from '@pixi/math';
                ~~~~~~
    'Matrix' is declared here.


Error: node_modules/@pixi/filter-displacement/lib/DisplacementFilter.d.ts:1:18 - error TS2459: Module '"@pixi/core"' declares 'Point' locally, but it is not exported.

1 import { Matrix, Point, Filter } from '@pixi/core';
                   ~~~~~

  node_modules/@pixi/core/index.d.ts:23:10
    23 import { Point } from '@pixi/math';
                ~~~~~
    'Point' is declared here.


Error: node_modules/@pixi/filter-displacement/lib/DisplacementFilter.d.ts:2:15 - error TS2459: Module '"@pixi/core"' declares 'CLEAR_MODES' locally, but it is not exported.

2 import type { CLEAR_MODES, FilterSystem, RenderTexture, Texture, ISpriteMaskTarget } from '@pixi/core';
                ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:9:10
    9 import { CLEAR_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'CLEAR_MODES' is declared here.


Error: node_modules/@pixi/graphics/lib/Graphics.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'Point' locally, but it is not exported.

1 import { Point, Polygon, Matrix, BLEND_MODES, Texture, Shader } from '@pixi/core';
           ~~~~~

  node_modules/@pixi/core/index.d.ts:23:10
    23 import { Point } from '@pixi/math';
                ~~~~~
    'Point' is declared here.


Error: node_modules/@pixi/graphics/lib/Graphics.d.ts:1:17 - error TS2305: Module '"@pixi/core"' has no exported member 'Polygon'.        

1 import { Point, Polygon, Matrix, BLEND_MODES, Texture, Shader } from '@pixi/core';
                  ~~~~~~~


Error: node_modules/@pixi/graphics/lib/Graphics.d.ts:1:26 - error TS2459: Module '"@pixi/core"' declares 'Matrix' locally, but it is not exported.

1 import { Point, Polygon, Matrix, BLEND_MODES, Texture, Shader } from '@pixi/core';
                           ~~~~~~

  node_modules/@pixi/core/index.d.ts:20:10
    20 import { Matrix } from '@pixi/math';
                ~~~~~~
    'Matrix' is declared here.


Error: node_modules/@pixi/graphics/lib/Graphics.d.ts:1:34 - error TS2459: Module '"@pixi/core"' declares 'BLEND_MODES' locally, but it is not exported.

1 import { Point, Polygon, Matrix, BLEND_MODES, Texture, Shader } from '@pixi/core';
                                   ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:6:10
    6 import { BLEND_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'BLEND_MODES' is declared here.


Error: node_modules/@pixi/graphics/lib/Graphics.d.ts:7:15 - error TS2305: Module '"@pixi/core"' has no exported member 'IShape'.

7 import type { IShape, IPointData, Renderer, BatchDrawCall } from '@pixi/core';
                ~~~~~~


Error: node_modules/@pixi/graphics/lib/Graphics.d.ts:7:23 - error TS2459: Module '"@pixi/core"' declares 'IPointData' locally, but it is not exported.

7 import type { IShape, IPointData, Renderer, BatchDrawCall } from '@pixi/core';
                        ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:16:15
    16 import type { IPointData } from '@pixi/math';
                     ~~~~~~~~~~
    'IPointData' is declared here.


Error: node_modules/@pixi/graphics/lib/GraphicsData.d.ts:1:15 - error TS2459: Module '"@pixi/core"' declares 'Matrix' locally, but it is not exported.

1 import type { Matrix, SHAPES, IShape } from '@pixi/core';
                ~~~~~~

  node_modules/@pixi/core/index.d.ts:20:10
    20 import { Matrix } from '@pixi/math';
                ~~~~~~
    'Matrix' is declared here.


Error: node_modules/@pixi/graphics/lib/GraphicsData.d.ts:1:23 - error TS2305: Module '"@pixi/core"' has no exported member 'SHAPES'.     

1 import type { Matrix, SHAPES, IShape } from '@pixi/core';
                        ~~~~~~


Error: node_modules/@pixi/graphics/lib/GraphicsData.d.ts:1:31 - error TS2305: Module '"@pixi/core"' has no exported member 'IShape'.     

1 import type { Matrix, SHAPES, IShape } from '@pixi/core';
                                ~~~~~~


Error: node_modules/@pixi/graphics/lib/GraphicsGeometry.d.ts:5:24 - error TS2305: Module '"@pixi/core"' has no exported member 'Circle'. 

5 import type { Texture, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, IPointData, Matrix } from '@pixi/core';
                         ~~~~~~


Error: node_modules/@pixi/graphics/lib/GraphicsGeometry.d.ts:5:32 - error TS2305: Module '"@pixi/core"' has no exported member 'Ellipse'.

5 import type { Texture, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, IPointData, Matrix } from '@pixi/core';
                                 ~~~~~~~


Error: node_modules/@pixi/graphics/lib/GraphicsGeometry.d.ts:5:41 - error TS2305: Module '"@pixi/core"' has no exported member 'Polygon'.

5 import type { Texture, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, IPointData, Matrix } from '@pixi/core';
                                          ~~~~~~~


Error: node_modules/@pixi/graphics/lib/GraphicsGeometry.d.ts:5:50 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

5 import type { Texture, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, IPointData, Matrix } from '@pixi/core';
                                                   ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/graphics/lib/GraphicsGeometry.d.ts:5:61 - error TS2305: Module '"@pixi/core"' has no exported member 'RoundedRectangle'.

5 import type { Texture, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, IPointData, Matrix } from '@pixi/core';
                                                              ~~~~~~~~~~~~~~~~


Error: node_modules/@pixi/graphics/lib/GraphicsGeometry.d.ts:5:79 - error TS2459: Module '"@pixi/core"' declares 'IPointData' locally, but it is not exported.

5 import type { Texture, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, IPointData, Matrix } from '@pixi/core';
                                                                                ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:16:15
    16 import type { IPointData } from '@pixi/math';
                     ~~~~~~~~~~
    'IPointData' is declared here.


Error: node_modules/@pixi/graphics/lib/GraphicsGeometry.d.ts:5:91 - error TS2459: Module '"@pixi/core"' declares 'Matrix' locally, but it is not exported.

5 import type { Texture, Circle, Ellipse, Polygon, Rectangle, RoundedRectangle, IPointData, Matrix } from '@pixi/core';
                                                                                            ~~~~~~

  node_modules/@pixi/core/index.d.ts:20:10
    20 import { Matrix } from '@pixi/math';
                ~~~~~~
    'Matrix' is declared here.


Error: node_modules/@pixi/graphics/lib/index.d.ts:11:15 - error TS2305: Module '"@pixi/core/"' has no exported member 'SHAPES'.

11 import type { SHAPES } from '@pixi/core';
                 ~~~~~~


Error: node_modules/@pixi/graphics/lib/styles/FillStyle.d.ts:2:15 - error TS2459: Module '"@pixi/core"' declares 'Matrix' locally, but it is not exported.

2 import type { Matrix } from '@pixi/core';
                ~~~~~~

  node_modules/@pixi/core/index.d.ts:20:10
    20 import { Matrix } from '@pixi/math';
                ~~~~~~
    'Matrix' is declared here.


Error: node_modules/@pixi/graphics/lib/utils/index.d.ts:20:10 - error TS2305: Module '"@pixi/core"' has no exported member 'SHAPES'.     

20 import { SHAPES } from '@pixi/core';
            ~~~~~~


Error: node_modules/@pixi/mesh-extras/lib/SimpleMesh.d.ts:3:15 - error TS2459: Module '"@pixi/core"' declares 'DRAW_MODES' locally, but it is not exported.

3 import type { DRAW_MODES, ITypedArray, IArrayBuffer, Renderer } from '@pixi/core';
                ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:12:10
    12 import { DRAW_MODES } from '@pixi/constants';
                ~~~~~~~~~~
    'DRAW_MODES' is declared here.


Error: node_modules/@pixi/mesh-extras/lib/SimpleRope.d.ts:2:15 - error TS2305: Module '"@pixi/core"' has no exported member 'IPoint'.    

2 import type { IPoint, Texture, Renderer } from '@pixi/core';
                ~~~~~~


Error: node_modules/@pixi/mesh-extras/lib/geometry/RopeGeometry.d.ts:2:15 - error TS2305: Module '"@pixi/core"' has no exported member 'IPoint'.

2 import type { IPoint } from '@pixi/core';
                ~~~~~~


Error: node_modules/@pixi/mesh/lib/Mesh.d.ts:1:17 - error TS2459: Module '"@pixi/core"' declares 'DRAW_MODES' locally, but it is not exported.

1 import { State, DRAW_MODES } from '@pixi/core';
                  ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:12:10
    12 import { DRAW_MODES } from '@pixi/constants';
                ~~~~~~~~~~
    'DRAW_MODES' is declared here.


Error: node_modules/@pixi/mesh/lib/Mesh.d.ts:5:15 - error TS2459: Module '"@pixi/core"' declares 'BLEND_MODES' locally, but it is not exported.

5 import type { BLEND_MODES, IPointData, Texture, Renderer, Geometry, Buffer, Shader } from '@pixi/core';
                ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:6:10
    6 import { BLEND_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'BLEND_MODES' is declared here.


Error: node_modules/@pixi/mesh/lib/Mesh.d.ts:5:28 - error TS2459: Module '"@pixi/core"' declares 'IPointData' locally, but it is not exported.

5 import type { BLEND_MODES, IPointData, Texture, Renderer, Geometry, Buffer, Shader } from '@pixi/core';
                             ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:16:15
    16 import type { IPointData } from '@pixi/math';
                     ~~~~~~~~~~
    'IPointData' is declared here.


Error: node_modules/@pixi/mesh/lib/MeshMaterial.d.ts:1:10 - error TS2305: Module '"@pixi/core"' has no exported member 'utils'.

1 import { utils, Program, Shader, TextureMatrix } from '@pixi/core';
           ~~~~~


Error: node_modules/@pixi/mixin-cache-as-bitmap/global.d.ts:16:60 - error TS2694: Namespace '".../node_modules/@pixi/core/index"' has no exported member 'IRenderer'.

16         _renderCachedCanvas(renderer: import('@pixi/core').IRenderer): void;
                                                              ~~~~~~~~~


Error: node_modules/@pixi/mixin-cache-as-bitmap/global.d.ts:17:71 - error TS2694: Namespace '".../node_modules/@pixi/core/index"' has no exported member 'IRenderer'.

17         _initCachedDisplayObjectCanvas(renderer: import('@pixi/core').IRenderer): void;
                                                                         ~~~~~~~~~


Error: node_modules/@pixi/mixin-cache-as-bitmap/lib/index.d.ts:3:35 - error TS2724: '"@pixi/core"' has no exported member named 'IRenderer'. Did you mean 'Renderer'?

3 import type { Renderer, MaskData, IRenderer, IPointData, Rectangle } from '@pixi/core';
                                    ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:3386:22
    3386 export declare class Renderer extends AbstractRenderer {
                              ~~~~~~~~
    'Renderer' is declared here.


Error: node_modules/@pixi/mixin-cache-as-bitmap/lib/index.d.ts:3:46 - error TS2459: Module '"@pixi/core"' declares 'IPointData' locally, but it is not exported.

3 import type { Renderer, MaskData, IRenderer, IPointData, Rectangle } from '@pixi/core';
                                               ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:16:15
    16 import type { IPointData } from '@pixi/math';
                     ~~~~~~~~~~
    'IPointData' is declared here.


Error: node_modules/@pixi/mixin-cache-as-bitmap/lib/index.d.ts:3:58 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

3 import type { Renderer, MaskData, IRenderer, IPointData, Rectangle } from '@pixi/core';
                                                           ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/particle-container/lib/ParticleContainer.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'BLEND_MODES' locally, but it is not exported.

1 import { BLEND_MODES } from '@pixi/core';
           ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:6:10
    6 import { BLEND_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'BLEND_MODES' is declared here.


Error: node_modules/@pixi/particle-container/lib/ParticleRenderer.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'TYPES' locally, but it is not exported.

1 import { TYPES, Matrix, ObjectRenderer, Shader, State } from '@pixi/core';
           ~~~~~

  node_modules/@pixi/core/index.d.ts:29:10
    29 import { TYPES } from '@pixi/constants';
                ~~~~~
    'TYPES' is declared here.


Error: node_modules/@pixi/particle-container/lib/ParticleRenderer.d.ts:1:17 - error TS2459: Module '"@pixi/core"' declares 'Matrix' locally, but it is not exported.

1 import { TYPES, Matrix, ObjectRenderer, Shader, State } from '@pixi/core';
                  ~~~~~~

  node_modules/@pixi/core/index.d.ts:20:10
    20 import { Matrix } from '@pixi/math';
                ~~~~~~
    'Matrix' is declared here.


Error: node_modules/@pixi/prepare/lib/BasePrepare.d.ts:5:15 - error TS2724: '"@pixi/core"' has no exported member named 'IRenderer'. Did you mean 'Renderer'?

5 import type { IRenderer } from '@pixi/core';
                ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:3386:22
    3386 export declare class Renderer extends AbstractRenderer {
                              ~~~~~~~~
    'Renderer' is declared here.


Error: node_modules/@pixi/prepare/lib/settings.d.ts:1:10 - error TS2305: Module '"@pixi/core"' has no exported member 'settings'.        

1 import { settings } from '@pixi/core';
           ~~~~~~~~


Error: node_modules/@pixi/sound/dist/pixi-sound.d.ts:3:10 - error TS2305: Module '"@pixi/core"' has no exported member 'utils'.

3 import { utils as utils_2 } from '@pixi/core';
           ~~~~~


Error: node_modules/@pixi/sound/dist/pixi-sound.d.ts:376:5 - error TS2416: Property 'init' in type 'HTMLAudioInstance' is not assignable to the same property in base type 'IMediaInstance'.
  Type '(media: HTMLAudioMedia) => void' is not assignable to type '(parent: IMedia) => void'.
    Types of parameters 'media' and 'parent' are incompatible.
      Type 'IMedia' is missing the following properties from type 'HTMLAudioMedia': parent, _source, source

376     init(media: HTMLAudioMedia): void;
        ~~~~


Error: node_modules/@pixi/sound/dist/pixi-sound.d.ts:435:5 - error TS2416: Property 'create' in type 'HTMLAudioMedia' is not assignable to the same property in base type 'IMedia'.
  Type '() => HTMLAudioInstance' is not assignable to type '() => IMediaInstance'.
    Type 'HTMLAudioInstance' is missing the following properties from type 'IMediaInstance': once, on, off

435     create(): HTMLAudioInstance;
        ~~~~~~


Error: node_modules/@pixi/sound/dist/pixi-sound.d.ts:1675:5 - error TS2416: Property 'init' in type 'WebAudioInstance' is not assignable to the same property in base type 'IMediaInstance'.
  Type '(media: WebAudioMedia) => void' is not assignable to type '(parent: IMedia) => void'.
    Types of parameters 'media' and 'parent' are incompatible.
      Type 'IMedia' is missing the following properties from type 'WebAudioMedia': parent, source, _nodes, _source, and 4 more.

1675     init(media: WebAudioMedia): void;
         ~~~~


Error: node_modules/@pixi/sound/dist/pixi-sound.d.ts:1708:5 - error TS2416: Property 'create' in type 'WebAudioMedia' is not assignable to the same property in base type 'IMedia'.
  Type '() => WebAudioInstance' is not assignable to type '() => IMediaInstance'.
    Type 'WebAudioInstance' is missing the following properties from type 'IMediaInstance': once, on, off

1708     create(): WebAudioInstance;
         ~~~~~~


Error: node_modules/@pixi/sprite-tiling/lib/TilingSprite.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

1 import { Rectangle, Transform, Texture, TextureMatrix } from '@pixi/core';
           ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/sprite-tiling/lib/TilingSprite.d.ts:1:21 - error TS2305: Module '"@pixi/core"' has no exported member 'Transform'.

1 import { Rectangle, Transform, Texture, TextureMatrix } from '@pixi/core';
                      ~~~~~~~~~


Error: node_modules/@pixi/sprite-tiling/lib/TilingSprite.d.ts:3:15 - error TS2459: Module '"@pixi/core"' declares 'IPointData' locally, but it is not exported.

3 import type { IPointData, ISize, ObservablePoint, Renderer, IBaseTextureOptions, TextureSource } from '@pixi/core';
                ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:16:15
    16 import type { IPointData } from '@pixi/math';
                     ~~~~~~~~~~
    'IPointData' is declared here.


Error: node_modules/@pixi/sprite-tiling/lib/TilingSprite.d.ts:3:27 - error TS2459: Module '"@pixi/core"' declares 'ISize' locally, but it is not exported.

3 import type { IPointData, ISize, ObservablePoint, Renderer, IBaseTextureOptions, TextureSource } from '@pixi/core';
                            ~~~~~

  node_modules/@pixi/core/index.d.ts:17:15
    17 import type { ISize } from '@pixi/math';
                     ~~~~~
    'ISize' is declared here.


Error: node_modules/@pixi/sprite-tiling/lib/TilingSprite.d.ts:3:34 - error TS2305: Module '"@pixi/core"' has no exported member 'ObservablePoint'.

3 import type { IPointData, ISize, ObservablePoint, Renderer, IBaseTextureOptions, TextureSource } from '@pixi/core';
                                   ~~~~~~~~~~~~~~~


Error: node_modules/@pixi/spritesheet/lib/Spritesheet.d.ts:1:32 - error TS2305: Module '"@pixi/core"' has no exported member 'utils'.    

1 import { Texture, BaseTexture, utils } from '@pixi/core';
                                 ~~~~~


Error: node_modules/@pixi/spritesheet/lib/Spritesheet.d.ts:2:15 - error TS2459: Module '"@pixi/core"' declares 'IPointData' locally, but it is not exported.

2 import type { IPointData } from '@pixi/core';
                ~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:16:15
    16 import type { IPointData } from '@pixi/math';
                     ~~~~~~~~~~
    'IPointData' is declared here.


Error: node_modules/@pixi/text-bitmap/lib/BitmapFont.d.ts:1:10 - error TS2459: Module '"@pixi/core"' declares 'ALPHA_MODES' locally, but it is not exported.

1 import { ALPHA_MODES, MIPMAP_MODES, Texture, utils } from '@pixi/core';
           ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:3:10
    3 import { ALPHA_MODES } from '@pixi/constants';
               ~~~~~~~~~~~
    'ALPHA_MODES' is declared here.


Error: node_modules/@pixi/text-bitmap/lib/BitmapFont.d.ts:1:23 - error TS2459: Module '"@pixi/core"' declares 'MIPMAP_MODES' locally, but it is not exported.

1 import { ALPHA_MODES, MIPMAP_MODES, Texture, utils } from '@pixi/core';
                        ~~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:21:15
    21 import type { MIPMAP_MODES } from '@pixi/constants';
                     ~~~~~~~~~~~~
    'MIPMAP_MODES' is declared here.


Error: node_modules/@pixi/text-bitmap/lib/BitmapFont.d.ts:1:46 - error TS2305: Module '"@pixi/core"' has no exported member 'utils'.     

1 import { ALPHA_MODES, MIPMAP_MODES, Texture, utils } from '@pixi/core';
                                               ~~~~~


Error: node_modules/@pixi/text-bitmap/lib/BitmapFont.d.ts:4:36 - error TS2459: Module '"@pixi/core"' declares 'SCALE_MODES' locally, but it is not exported.

4 import type { IBaseTextureOptions, SCALE_MODES } from '@pixi/core';
                                     ~~~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:27:10
    27 import { SCALE_MODES } from '@pixi/constants';
                ~~~~~~~~~~~
    'SCALE_MODES' is declared here.


Error: node_modules/@pixi/text-bitmap/lib/BitmapText.d.ts:3:25 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

3 import type { Renderer, Rectangle } from '@pixi/core';
                          ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/text-bitmap/lib/BitmapText.d.ts:4:10 - error TS2305: Module '"@pixi/core"' has no exported member 'ObservablePoint'.

4 import { ObservablePoint } from '@pixi/core';
           ~~~~~~~~~~~~~~~


Error: node_modules/@pixi/text/lib/Text.d.ts:2:10 - error TS2459: Module '"@pixi/core"' declares 'Rectangle' locally, but it is not exported.

2 import { Rectangle } from '@pixi/core';
           ~~~~~~~~~

  node_modules/@pixi/core/index.d.ts:24:10
    24 import { Rectangle } from '@pixi/math';
                ~~~~~~~~~
    'Rectangle' is declared here.


Error: node_modules/@pixi/text/lib/Text.d.ts:6:15 - error TS2305: Module '"@pixi/settings"' has no exported member 'ICanvas'.

6 import type { ICanvas, ICanvasRenderingContext2D } from '@pixi/settings';
                ~~~~~~~


Error: node_modules/@pixi/text/lib/Text.d.ts:6:24 - error TS2305: Module '"@pixi/settings"' has no exported member 'ICanvasRenderingContext2D'.

6 import type { ICanvas, ICanvasRenderingContext2D } from '@pixi/settings';
                         ~~~~~~~~~~~~~~~~~~~~~~~~~


Error: node_modules/@pixi/text/lib/TextMetrics.d.ts:1:15 - error TS2305: Module '"@pixi/settings"' has no exported member 'ICanvas'.     

1 import type { ICanvas, ICanvasRenderingContext2D } from '@pixi/settings';
                ~~~~~~~


Error: node_modules/@pixi/text/lib/TextMetrics.d.ts:1:24 - error TS2305: Module '"@pixi/settings"' has no exported member 'ICanvasRenderingContext2D'.

1 import type { ICanvas, ICanvasRenderingContext2D } from '@pixi/settings';
                         ~~~~~~~~~~~~~~~~~~~~~~~~~

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
bigtimebuddycommented, Nov 5, 2022

We agree! Lighting and a proper camera are on our roadmap for v8 once we introduce WebGPU rendering.

0reactions
bigtimebuddycommented, Nov 7, 2022

I’m going to close this issue. If you are having conflicts with plugins (e.g. pixi-viewport, @pixi/particle-emitter), please file an issue on the corresponding repo.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PIXI import not working: Cannot find module pixi.js
Pixi has a d.ts file, so I should be getting types. What am I doing wrong here? -e. typescript · pixi.
Read more >
Using pixi-viewport with old version of pixi.js
Hi,. I want to use pixi-viewport library in my project, however I get this TypeScript errors when I try to integrate it in...
Read more >
Pixi's docs - PixiJS API Documentation
Error installing gl package. In most cases installing gl from npm should just work. However, if you run into problems you might need...
Read more >
TypeScript errors and how to fix them
Common Errors. Below you find a list of common TypeScript errors along with the buggy code and its fixed version. If you're interested...
Read more >
Pixi.js Errors | RPG Maker Forums
0 to enforce that more strictly than before to prevent several problems on deployment. If those name changes do not solve the problem,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found