Comments (6)
Sure thing, I take a look at it and update, clean package.json
from react-immutable-pure-component.
@kaiyoma Strange issue you have when @types/react is declared only in devDependencies? So this should not affect you neither when this package is direct nor indirect dependency in your project. Can you copy paste the error, and show me your yarn.lock or package-lock.json fragment regarding dependencies against this package so maybe I can help with your error.
from react-immutable-pure-component.
I did a "clean install" of all my packages and the errors have gone away, so I think everything's okay now. That said, I will point out that all my other packages are using the latest version of React types (16.9.56) and only react-immutable-pure-component is using an old version:
$ yarn why @types/react
yarn why v1.22.5
[1/4] Why do we have the module "@types/react"...?
[2/4] Initialising dependency graph...
[3/4] Finding dependency...
[4/4] Calculating file sizes...
=> Found "@types/[email protected]"
info Has been hoisted to "@types/react"
info Reasons this module exists
- Specified in "devDependencies"
- Hoisted from "@types#enzyme#@types#react"
- Hoisted from "@types#react-color#@types#react"
- Hoisted from "@types#react-copy-to-clipboard#@types#react"
- Hoisted from "@types#react-dom#@types#react"
- Hoisted from "@types#react-grid-layout#@types#react"
- Hoisted from "@types#react-list#@types#react"
- Hoisted from "@types#react-redux#@types#react"
- Hoisted from "@types#react-virtualized#@types#react"
- Hoisted from "@types#recompose#@types#react"
- Hoisted from "@vx#axis#@types#react"
- Hoisted from "@vx#gradient#@types#react"
- Hoisted from "@vx#pattern#@types#react"
- Hoisted from "@vx#responsive#@types#react"
- Hoisted from "@vx#stats#@types#react"
- Hoisted from "@vx#text#@types#react"
- Hoisted from "@types#enzyme-adapter-react-16#@types#enzyme#@types#react"
- Hoisted from "@types#react-redux#@types#hoist-non-react-statics#@types#react"
- Hoisted from "@storybook#api#@types#reach__router#@types#react"
- Hoisted from "antd#@types#react-slick#@types#react"
- Hoisted from "@storybook#components#@types#react-syntax-highlighter#@types#react"
- Hoisted from "@types#react-color#@types#reactcss#@types#react"
- Hoisted from "@vx#axis#@vx#group#@types#react"
- Hoisted from "@vx#stats#@vx#group#@types#react"
- Hoisted from "@vx#axis#@vx#shape#@types#react"
- Hoisted from "@storybook#core#@storybook#ui#@types#markdown-to-jsx#@types#react"
- Hoisted from "@testing-library#react-hooks#@types#testing-library__react-hooks#@types#react-test-renderer#@types#re
act"
- Hoisted from "@sambego#storybook-state#@storybook#components#@types#react-textarea-autosize#@types#react"
info Disk size without dependencies: "172KB"
info Disk size with unique dependencies: "1.28MB"
info Disk size with transitive dependencies: "1.28MB"
info Number of shared dependencies: 2
=> Found "react-immutable-pure-component#@types/[email protected]"
info This module exists because "swagger-ui-react#react-immutable-pure-component" depends on it.
info Disk size without dependencies: "128KB"
info Disk size with unique dependencies: "1.22MB"
info Disk size with transitive dependencies: "1.22MB"
info Number of shared dependencies: 1
Done in 2.13s.
Maybe it would be good to change your dependency to use ^
notation? It would be good package hygiene to keep up with the latest types.
from react-immutable-pure-component.
So I got interested in your issue and this is what I found:
If you install latest swagger-ui it depends on ^1.1.1
of this package: https://github.com/swagger-api/swagger-ui/blob/master/package.json#L83 so with all the ^
logic the varsion 1.2.3
is installed that I was having @types/react: *
(as you seen more loose it coudn't have been) in optionalDependencies
that in swagger-ui
package-lock.json
(here) was frozen to:
"react-immutable-pure-component": {
"version": "1.2.3",
"requires": {
"@types/react": "16.4.6"
}
},
So when you install you drag package-lock.json
version from swagger-ui
.
Something I can do is to release version v1 (in v2 I already dont' have this) without this optionalDependency
but this will help only when swagger-ui
in package-lock.json
will be rebuild.
And regarding ^
as I've mentioned I don't have it in dependences
and my peerDepenedecies
are *
in dependencies in package and I personally think that having ^
is generally bad idea as you hide specific version in lock files so just gain hidden information and just leave you with less control and rare cases of mismatching install as regeneration of lockfiles is a bit more complex, but this is just short remark and topic for separate discussion.
To sum up, I'll prepare version for version v1
, without this optionalDependency
but when package-lock.json
in swagger-ui
will be regenerated I don't know but at some day this should be solved.
from react-immutable-pure-component.
https://www.npmjs.com/package/react-immutable-pure-component/v/1.2.4 published
from react-immutable-pure-component.
Very nice, this new version is working out very well in my project. Thanks so much for the attention over the weekend!
from react-immutable-pure-component.
Related Issues (1)
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 react-immutable-pure-component.