Comments (4)
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.
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.
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:
- Run
npm install
in the root directory - Next, run
npm run bootstrap
- In terminal go to the
cd packages/jest-puppe-shots
and runnpm link
- Link the rest of the packages from the directory:
cd ../jest-puppe-shots-env; npm link; cd ../jest-puppe-shots-preset; npm link
- 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.
Any news on this fix?
from jest-puppe-shots.
Related Issues (6)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest-puppe-shots.