postprocessing icon indicating copy to clipboard operation
postprocessing copied to clipboard

Can't build in Angular with errors in types/postprocessing.d.ts

Open Zundrium opened this issue 3 years ago • 4 comments

I'm having issues with building after including the EffectComposer.

I assume I'm doing something wrong because I haven't found any results about this. But I have no idea where to look, the error is as follows:

In an empty Angular project I install three, @types/three and postprocessing.

import {EffectComposer} from 'postprocessing' triggers the following errors:

'fullscreenMaterial' is defined as an accessor in class 'Pass', but is overridden here in 'AdaptiveL
uminancePass' as an instance property.
'fullscreenMaterial' is defined as an accessor in class 'Pass', but is overridden here in 'CopyPass'
 as an instance property.
'fullscreenMaterial' is defined as an accessor in class 'Pass', but is overridden here in 'DepthCopy
Pass' as an instance property.
... and many more 

Does someone know where I have to look?

Zundrium avatar Aug 03 '22 15:08 Zundrium

Reverting back to version 6.25.0 (last one without type files) and declaring postprocessing as a module allows me to compile the project. Not really a solution though.

Zundrium avatar Aug 04 '22 16:08 Zundrium

There has to be something wrong with your setup. Any chance you could provide a repository with a minimal reproduction of the issue?

vanruesc avatar Aug 04 '22 19:08 vanruesc

Thanks for your reply @vanruesc , it happens in an empty Angular project with the steps I mentioned above.

Zundrium avatar Aug 07 '22 10:08 Zundrium

I've had the same issue, but not while using Angular. I'm using threejs 0.143.0, which is currently the latest release, and I'm also using @types/three ^0.143.0.

My full dependencies are as follows:

	"devDependencies": {
		"@types/three": "^0.136.1",
		"autoprefixer": "^10.4.0",
		"prettier": "^2.5.0",
		"sass": "^1.43.5",
		"typescript": "^4.3.2",
		"vite": "^2.6.14"
	},
	"dependencies": {
		"path": "^0.12.7",
		"three": "^0.136.0",
		"lil-gui": "^0.16.0",
		"vite-plugin-live-reload": "^2.1.0"
	}

Cloov avatar Aug 08 '22 16:08 Cloov

The types have been updated and validated in [email protected]. Please check again if the reported issue still persists.

vanruesc avatar Aug 31 '22 22:08 vanruesc

Good news: no more errors for me, personally, upon updating to [email protected]. Thanks for the update!

Cloov avatar Sep 01 '22 16:09 Cloov

Closing this as it seems to be resolved.

vanruesc avatar Sep 14 '22 20:09 vanruesc