Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Unable to resolve module @pixi/core #158

Open
cdesch opened this issue Mar 11, 2021 · 10 comments · May be fixed by #228
Open

Unable to resolve module @pixi/core #158

cdesch opened this issue Mar 11, 2021 · 10 comments · May be fixed by #228

Comments

@cdesch
Copy link

cdesch commented Mar 11, 2021

Unable to resolve module @pixi/core using "expo": "~40.0.0",

Failed building JavaScript bundle.
Unable to resolve module @pixi/core from /Users/cj1/projects/autograph_nft_app/node_modules/@pixi/filter-adjustment/dist/filter-adjustment.cjs.js: @pixi/core could not be found within the project.

If you are sure the module exists, try these steps:
 1. Clear watchman watches: watchman watch-del-all
 2. Delete node_modules and run yarn install
 3. Reset Metro's cache: yarn start --reset-cache
 4. Remove the cache: rm -rf /tmp/metro-*
  10 | Object.defineProperty(exports, '__esModule', { value: true });
  11 |
> 12 | var core = require('@pixi/core');
     |                     ^
  13 |
@guavadevelopment
Copy link

Your mileage may vary but I got this to work in expo 40 by adding these modules directly to my project with yarn add

"@pixi/core": "^6.0.0",
"@pixi/filter-alpha": "^6.0.0",
"@pixi/filter-blur": "^6.0.0",

@srmagura
Copy link

The problem is in the package.json. expo-pixi is pulling in whatever the latest version of pixi-filters is:

"pixi-filters": "*",

Fixed in my project by forcing pixi-filters to resolve to 3.1.1 with a Yarn resolution in my package.json:

"resolutions": {
    "pixi-filters": "3.1.1"
}

@rbrogi
Copy link

rbrogi commented Oct 19, 2021

Hi,
i have the same problem with expo 42.... i tried add "@pixi/core": "^6.0.0",
"@pixi/filter-alpha": "^6.0.0",
"@pixi/filter-blur": "^6.0.0", & "pixi-filters": "3.1.1"

but nothing...

have you any idea?

@srmagura
Copy link

Hey @rbrogi, expo-pixi is super unmaintained and has many issues. I would suggest using something else.

I switched to react-native-signature-canvas. It has its own issues but does ultimately work.

@rbrogi
Copy link

rbrogi commented Oct 19, 2021

@srmagura thanks so musch about the info.

@brentvatne
Copy link
Member

we don't currently maintain this library because we don't have the time for it, but if someone would like to contribute and take over maintainership please let me know

@Bartozzz
Copy link

@brentvatne @EvanBacon I'd be happy to maintain this package. I created a PR that fixes all of the major issues here. Please, feel free to contact me on hi@laniewski.me if you'd like to discuss. I am a hobbyist game developer, so I'll maintain my fork anyway.

@Bartozzz Bartozzz linked a pull request May 29, 2022 that will close this issue
@flyskywhy
Copy link

@Bartozzz maybe you can also have a look at https://github.com/flyskywhy/react-native-pixi which also forked from here 😝

@thargenediad
Copy link

@brentvatne @EvanBacon I'd be happy to maintain this package. I created a PR that fixes all of the major issues here. Please, feel free to contact me on hi@laniewski.me if you'd like to discuss. I am a hobbyist game developer, so I'll maintain my fork anyway.

@Bartozzz , Is there a way I can use your fork with the Signature component included?
The Signature piece is the only thing I need pixi for.

@Bartozzz
Copy link

@thargenediad I could, but I guess there's no point since this repository is dead and I won't have time to maintain my fork on my own. My recommendation for you is to copy my fork directly to your project and add the Signature component on your own – it should be pretty straightforward.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants