import/no-unresolved
triggers when importing pixi.js/advanced-blend-modes
.
#3088
Labels
import/no-unresolved
triggers when importing pixi.js/advanced-blend-modes
.
#3088
With PixiJS v8, advanced blend modes are imported as follows (see for instance https://pixijs.com/8.x/examples/basic/blend-modes):
However, this triggers the lint error
Unable to resolve path to module 'pixi.js/advanced-blend-modes'. [import/no-unresolved]
.Here is the (I think) relevant part of PixiJS's package.json (seems correct to me, but I don’t know much about those things):
Note that if I write the following:
then the lint error goes away, but the import itself doesn’t work anymore, I get the following error from Vite:
I'm not sure if it’s an issue in
eslint-plugin-import
, in PixiJS, or if I misconfigured something? I’m using ESLint 8.57 with a.eslintrc
and"type": "module"
in mypackage.json
.The text was updated successfully, but these errors were encountered: