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

npm install之后,运行npm run build报错 #33

Open
wangwei123 opened this issue Jun 18, 2024 · 1 comment
Open

npm install之后,运行npm run build报错 #33

wangwei123 opened this issue Jun 18, 2024 · 1 comment

Comments

@wangwei123
Copy link

npm install之后,运行npm run build报错:
ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/ChatDemo.ts
./src/ChatDemo.ts 34:8-31
[tsl] ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/ChatDemo.ts(34,9)
TS2322: Type '(index: number, item: GButton) => void' is not assignable to type '(index: number, item: GObject) => void'.
Types of parameters 'item' and 'item' are incompatible.
Type 'GObject' is missing the following properties from type 'GButton': _titleObject, _iconObject, _mode, _selected, and 110 more.

ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/JoystickModule.ts
./src/JoystickModule.ts 58:68-80
[tsl] ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/JoystickModule.ts(58,69)
TS2345: Argument of type 'import("/Users/wangwei/Workspace/games/FairyGUI-threejs-example/node_modules/@types/three/src/math/Vector2").Vector2' is not assignable to parameter of type 'THREE.Vector2'.
Types of property 'copy' are incompatible.
Type '(v: import("/Users/wangwei/Workspace/games/FairyGUI-threejs-example/node_modules/@types/three/src/math/Vector2").Vector2) => import("/Users/wangwei/Workspace/games/FairyGUI-threejs-example/node_modules/@types/three/src/math/Vector2").Vector2' is not assignable to type '(v: THREE.Vector2) => THREE.Vector2'.
Types of parameters 'v' and 'v' are incompatible.
Type 'Vector2' is missing the following properties from type 'Vector2': angleTo, [Symbol.iterator]

ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/JoystickModule.ts
./src/JoystickModule.ts 93:68-80
[tsl] ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/JoystickModule.ts(93,69)
TS2345: Argument of type 'import("/Users/wangwei/Workspace/games/FairyGUI-threejs-example/node_modules/@types/three/src/math/Vector2").Vector2' is not assignable to parameter of type 'THREE.Vector2'.

ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/ScrollPaneDemo.ts
./src/ScrollPaneDemo.ts 17:8-31
[tsl] ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/ScrollPaneDemo.ts(17,9)
TS2322: Type '(index: number, item: GButton) => void' is not assignable to type '(index: number, item: GObject) => void'.
Types of parameters 'item' and 'item' are incompatible.
Type 'GObject' is not assignable to type 'GButton'.

ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/index.ts
./src/index.ts 43:24-37
[tsl] ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/index.ts(43,25)
TS2345: Argument of type 'WebGLRenderer' is not assignable to parameter of type 'Renderer'.
Types of property 'render' are incompatible.
Type '(scene: Object3D, camera: Camera) => void' is not assignable to type '(scene: Object3D, camera: Camera) => void'.
Types of parameters 'scene' and 'scene' are incompatible.
Type 'Object3D' is missing the following properties from type 'Object3D': matrixWorldAutoUpdate, removeFromParent, getObjectsByProperty

ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/index.ts
./src/index.ts 44:8-24
[tsl] ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/index.ts(44,9)
TS2741: Property 'autoUpdate' is missing in type 'import("/Users/wangwei/Workspace/games/FairyGUI-threejs-example/node_modules/@types/three/src/scenes/Scene").Scene' but required in type 'THREE.Scene'.

ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/index.ts
./src/index.ts 137:41-58
[tsl] ERROR in /Users/wangwei/Workspace/games/FairyGUI-threejs-example/src/index.ts(137,42)
TS2345: Argument of type 'THREE.Camera' is not assignable to parameter of type 'import("/Users/wangwei/Workspace/games/FairyGUI-threejs-example/node_modules/@types/three/src/cameras/Camera").Camera'.
Type 'Camera' is missing the following properties from type 'Camera': coordinateSystem, matrixWorldAutoUpdate, removeFromParent, getObjectsByProperty
Child HtmlWebpackCompiler:
1 asset
Entrypoint HtmlWebpackPlugin_0 = __child-HtmlWebpackPlugin_0
[./node_modules/html-webpack-plugin/lib/loader.js!./template.html] 1.04 KiB {HtmlWebpackPlugin_0} [built]

@xiaoguzhu
Copy link
Member

先执行npm install

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