Jump to content

Cannot find module '@pixi/filter-bloom' (TypeScript)


Recommended Posts


I want to try out some additional filters, e. g. the bloom filter. I followed the instructions on npm - @pixi/filter-bloom.

But when i add the import statement into my main.ts, i get the following error:

"Cannot find module '@pixi/filter-bloom'. Did you mean to set the 'moduleResolution' option to 'node', or to add aliases to the 'paths' option?"


This is a snippet from my main.ts:



The module appears under my node_modules directory and comes with a types.d.ts:




The module is listed in my package.json file:



Any idea how to solve this error?

Best regards,


Link to comment
Share on other sites

I solved it!!  For anyone, running into the same problem:

You need to add the module to the types field in your tsconfig.json file:



In VSCode, i also get the type information now.



Since im new to typescript and web-dev, maybe someone could tell me if this approach is correct?
Also, maybe someone can explain what's happening in the background. 

Thanks anyways :)


Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...