Skip to content

Can't use in project (Create ReactApp) #45

Closed

Description

@mikejw

I'm attempting to create a sketch file using your method but I'm getting this error:

Module not found: Can't resolve 'p5' in '/node_modules/react-p5-wrapper/dist'.

Do I need to create a browserfy build of p5 or something?

Please help!

Activity

  1. mikejw commented on Apr 23, 2020

    @mikejw
    Author

    Sorry got it. Just need to:
    npm install --save p5

  2. jamesrweb commented on May 23, 2020

    @jamesrweb
    Member

    @mikejw you shouldn't have to do that yourself, p5 is bundled with the package. Perhaps you can share your install step, package.json and code. I fear this may happen for other people but goes under the radar and so want to be sure it isn't just a silly install issue. 😄

  3. Malarkey-Jhu commented on Jun 4, 2020

    @Malarkey-Jhu

    same problem here

    image

  4. jamesrweb commented on Sep 23, 2020

    @jamesrweb
    Member

    @Malarkey-Jhu @mikejw I have submitted pull request #56 which should resolve this issue for you once merged!

  5. jamesrweb commented on Sep 28, 2020

    @jamesrweb
    Member

    @Malarkey-Jhu @mikejw, #56 is now merged but not release to NPM, I will do this after some other changes are added in the coming week(s). I will ping you here when the changes are released to NPM for you. Until then, you could pull and build the project locally if it is urgent or you just wanted to do so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions