postprocessing: TS7016: Could not find a declaration file for module 'postprocessing'.

just created an empty react project with typescript template. when I import ‘postprocessing’ it throws an error. VS Code does not show any errors, and even with ctrl+click, you can go to the library folder in the node module folder.

To Reproduce

1- create an empty react project with typescript template: yarn create react-app . --template typescript 2- import { BlendFunction } from ‘postprocessing’

Expected behavior

there should be no error. The only way I found to silence this problem is to set the option “noImplicitAny”: false in tsconfig in tsconfig.json

Screenshots

image

Library versions used

"postprocessing": "^6.32.0" "three": "^0.153.0"

Desktop

  • OS: windows 10
  • Browser: Chrome Version 114.0.5735.134 (Official Build) (64-bit)
  • Graphics hardware: NVIDIA

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 15 (8 by maintainers)

Commits related to this issue

Most upvoted comments

FWIW https://arethetypeswrong.github.io and https://publint.dev provide a sanity check for both package config and output.

I even checked the GitHub actions workflow to confirm whether the file was included in the package, but I didn’t notice the incorrect file name 🤦‍♂️

Thanks for investigating! I’ll push a fix in a bit.