Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: npm run build: error TS2503: Cannot find namespace 'PixiMixins' #10464

Open
a7359475 opened this issue Apr 22, 2024 · 0 comments
Open

Bug: npm run build: error TS2503: Cannot find namespace 'PixiMixins' #10464

a7359475 opened this issue Apr 22, 2024 · 0 comments
Assignees

Comments

@a7359475
Copy link

Current Behavior

$ npm run build

pixi.js@8.1.0 prebuild
npm run clean

pixi.js@8.1.0 clean
run-s clean:*

pixi.js@8.1.0 clean:build
rimraf "{lib,dist,out}" --glob

pixi.js@8.1.0 clean:index
rimraf "src/*/**/index.ts" --glob

pixi.js@8.1.0 clean:uploads
rimraf .pr_uploads .s3_uploads --glob

pixi.js@8.1.0 build
run-s build:index build:pkg build:rollup build:tsc build:dts build:dts-bundle

pixi.js@8.1.0 build:index
ts-node --transpile-only ./scripts/index/index.ts

pixi.js@8.1.0 build:pkg
ts-node ./scripts/utils/exports.ts

pixi.js@8.1.0 build:rollup
npx rollup -c --failAfterWarnings

(node:1364) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
(Use node --trace-warnings ... to show where the warning was created)

C:\mine\code\github\pixijs\src\environment-browser\browserAll.ts, C:\mine\code\github\pixijs\src\environment-webworker\webworkerAll.ts, C:\mine\code\github\pixijs\src\index.ts, C:\mine\code\github\pixijs\src\rendering\init.ts, C:\mine\code\github\pixijs\src\spritesheet\init.ts, C:\mine\code\github\pixijs\src\rendering\renderers\shared\texture\utils\textureFrom.ts, C:\mine\code\github\pixijs\src\accessibility\init.ts, C:\mine\code\github\pixijs\src\advanced-blend-modes\init.ts, C:\mine\code\github\pixijs\src\app\init.ts, C:\mine\code\github\pixijs\src\compressed-textures\dds\init.ts, C:\mine\code\github\pixijs\src\compressed-textures\ktx\init.ts, C:\mine\code\github\pixijs\src\compressed-textures\ktx2\init.ts, C:\mine\code\github\pixijs\src\compressed-textures\basis\init.ts, C:\mine\code\github\pixijs\src\events\init.ts, C:\mine\code\github\pixijs\src\filters\init.ts, C:\mine\code\github\pixijs\src\math-extras\init.ts, C:\mine\code\github\pixijs\src\scene\sprite-tiling\init.ts, C:\mine\code\github\pixijs\src\scene\text\init.ts, C:\mine\code\github\pixijs\src\scene\text-bitmap\init.ts, C:\mine\code\github\pixijs\src\scene\text-html\init.ts, C:\mine\code\github\pixijs\src\scene\graphics\init.ts, C:\mine\code\github\pixijs\src\scene\mesh\init.ts, C:\mine\code\github\pixijs\src\prepare\init.ts, C:\mine\code\github\pixijs\src\unsafe-eval\init.ts, C:\mine\code\github\pixijs\src\scene\sprite-nine-slice\init.ts → lib, lib...
created lib, lib in 7.4s

C:\mine\code\github\pixijs\src\bundle.browser.ts → dist/pixi.js, dist/pixi.mjs...
created dist/pixi.js, dist/pixi.mjs in 7s

C:\mine\code\github\pixijs\src\bundle.browser.ts → dist/pixi.min.js, dist/pixi.min.mjs...
created dist/pixi.min.js, dist/pixi.min.mjs in 6.6s

C:\mine\code\github\pixijs\src\bundle.math-extras.ts → dist/packages/math-extras.js...
created dist/packages/math-extras.js in 374ms

C:\mine\code\github\pixijs\src\bundle.math-extras.ts → dist/packages/math-extras.min.js...
created dist/packages/math-extras.min.js in 76ms

C:\mine\code\github\pixijs\src\bundle.unsafe-eval.ts → dist/packages/unsafe-eval.js...
created dist/packages/unsafe-eval.js in 152ms

C:\mine\code\github\pixijs\src\bundle.unsafe-eval.ts → dist/packages/unsafe-eval.min.js...
created dist/packages/unsafe-eval.min.js in 130ms

C:\mine\code\github\pixijs\src\bundle.advanced-blend-modes.ts → dist/packages/advanced-blend-modes.js...
created dist/packages/advanced-blend-modes.js in 182ms

C:\mine\code\github\pixijs\src\bundle.advanced-blend-modes.ts → dist/packages/advanced-blend-modes.min.js...
created dist/packages/advanced-blend-modes.min.js in 174ms

C:\mine\code\github\pixijs\src\bundle.webworker.ts → dist/webworker.js, dist/webworker.mjs...
created dist/webworker.js, dist/webworker.mjs in 4.9s

C:\mine\code\github\pixijs\src\bundle.webworker.ts → dist/webworker.min.js, dist/webworker.min.mjs...
created dist/webworker.min.js, dist/webworker.min.mjs in 4.7s

pixi.js@8.1.0 build:tsc
tsc -p tsconfig.types.json

pixi.js@8.1.0 build:dts
ts-node --transpile-only ./scripts/types/fixTypes.ts && copyfiles -u 1 "src/**/*.d.ts" lib/

pixi.js@8.1.0 build:dts-bundle
dts-bundle-generator --config dts.config.js

Compiling input files1...
lib/app/Application.d.ts(68,64): error TS2503: Cannot find namespace 'PixiMixins'.
lib/app/Application.d.ts(70,38): error TS2503: Cannot find namespace 'PixiMixins'.
lib/app/TickerPlugin.d.ts(57,27): error TS2503: Cannot find namespace 'PixiMixins'.
lib/assets/Assets.d.ts(26,78): error TS2503: Cannot find namespace 'PixiMixins'.
lib/environment/canvas/ICanvas.d.ts(44,34): error TS2503: Cannot find namespace 'PixiMixins'.
lib/maths/point/ObservablePoint.d.ts(3,42): error TS2503: Cannot find namespace 'PixiMixins'.
lib/maths/point/Point.d.ts(3,32): error TS2503: Cannot find namespace 'PixiMixins'.
lib/maths/shapes/Rectangle.d.ts(5,36): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gl/WebGLRenderer.d.ts(22,70): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gl/WebGLRenderer.d.ts(22,99): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gl/WebGLRenderer.d.ts(24,73): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gl/WebGLRenderer.d.ts(24,100): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gl/WebGLRenderer.d.ts(29,114): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gpu/WebGPURenderer.d.ts(20,72): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gpu/WebGPURenderer.d.ts(20,101): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gpu/WebGPURenderer.d.ts(21,75): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gpu/WebGPURenderer.d.ts(21,102): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/gpu/WebGPURenderer.d.ts(26,116): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/shared/system/AbstractRenderer.d.ts(111,62): error TS2503: Cannot find namespace 'PixiMixins'.
lib/rendering/renderers/shared/system/SharedSystems.d.ts(24,94): error TS2503: Cannot find namespace 'PixiMixins'.
lib/scene/container/Container.d.ts(14,68): error TS2503: Cannot find namespace 'PixiMixins'.
lib/scene/container/Container.d.ts(51,86): error TS2503: Cannot find namespace 'PixiMixins'.
lib/scene/container/Container.d.ts(89,67): error TS2503: Cannot find namespace 'PixiMixins'.

Error: Compiled with errors
ERROR: "build:dts-bundle" exited with 1.

Expected Behavior

Normal generate d.ts

Steps to Reproduce

  1. git clone
  2. cd pixijs
  3. git checkout v8.1.0
  4. npm i
  5. npm run build

Environment

  • pixi.js version: 8.1.0
  • Terminal & Version: Git Bash(Git for Windows v2.37.0)
  • OS & Version: WINDOWS 10 PRO

Possible Solution

No response

Additional Information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants