Closed leavest closed 5 years ago
Here is my package.json:
{
"name": "antd-demo",
"version": "0.1.0",
"private": true,
"dependencies": {
"font-awesome": "^4.0.0",
"lodash": "^4.0.0",
"moment": "^2.0.0",
"react": "^16.5.2",
"react-dom": "^16.5.2",
"react-scripts": "2.0.5",
"styled-components": "^2.0.0",
"weaveworks-ui-components": "^0.14.0"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
Thank you @leavest for this very thorough report!
I will take a look at it today and try to get back to you with a PR this week.
So it seems like there were two separate issues here:
<ThemeProvider />
wrapper was missing - I created #419 which documents the usage better for now and suggested a change #418 which would make this redundant in the future and simplify the usage of this repoIf both #417 and #418 are accepted and resolved, then the only dependency will be React and one will be able to simply import and use our components like in your code above.
In the meantime, please take a look at #419 to get on with your app :)
When I install weaveworks-ui-components by yarn.
I have to manually download these 4 dependencies.
I write a demo,
and get this error. TypeError: Cannot read property 'purple25' of undefined (anonymous function) node_modules/weaveworks-ui-components/lib/components/GraphNode/_GraphNodeStatic.js:258
How can i use this componment?