Code Monkey home page Code Monkey logo

Comments (4)

michalg42 avatar michalg42 commented on May 27, 2024

Most probably it's caused by different versions of styled-components used in project and jest-puppe-shots, at least it was a case in my situation, when I changed styled-components in jest-puppe-shots to peerDependency it started to use the one from root of my project and it no longer shows this error.

But it lead to new problem, in new version of styled-components directory lib has been completely removed so there is error in renderer of styled components. Here is issue about this problem: styled-components/styled-components#1483

from jest-puppe-shots.

michalg42 avatar michalg42 commented on May 27, 2024

I downloaded this project and tried to fixed it by myself, but I don't know how to build this this project so I can't test it with real app, I'm quite new to lerna and this kind of stuff. :(

Fixing it is quite simple, styled-components needs to be moved to peerDependencies and at least "3.0.0" (as it had some breaking changes) and one line in styled components renderer, I could create PR but as I said, I can't test it with real app so I'm not sure if it works correctly...

from jest-puppe-shots.

macku avatar macku commented on May 27, 2024

Sounds good. You can create a Pull Requests if you have some code and I can test it later this weekend.

As for testing development version:

  1. Run npm install in the root directory
  2. Next, run npm run bootstrap
  3. In terminal go to the cd packages/jest-puppe-shots and run npm link
  4. Link the rest of the packages from the directory: cd ../jest-puppe-shots-env; npm link; cd ../jest-puppe-shots-preset; npm link
  5. Now you can start using all the packages locally in your test project. Just navigate to the project directory and in a terminal run:
    npm link jest-puppe-shots jest-puppe-shots-env jest-puppe-shots-preset

If you will make changes in the puppe-shots project all the change should be visible in your test project.

If you would like to remove the linked packages, simple run npm unlink jest-puppe-shots jest-puppe-shots-env jest-puppe-shots-preset.

Let me know if this helped.

from jest-puppe-shots.

slangberg avatar slangberg commented on May 27, 2024

Any news on this fix?

from jest-puppe-shots.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.