-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
@apollo/client^3.5.0
transpilation produces error TS2688: Cannot find type definition file for 'zen-observable'.
`
#9040
Comments
@apollo/[email protected]
transpilation produces error TS2688: Cannot find type definition file for 'zen-observable'.
`@apollo/client^3.5.0
transpilation produces error TS2688: Cannot find type definition file for 'zen-observable'.
`
@KeithGillette What
lines in the generated More background on why we decided to remove You might also need to run |
Hi, @benjamn — {
"_from": "@apollo/[email protected]",
"_id": "@apollo/[email protected]",
"_inBundle": false,
"_integrity": "sha512-STC7ZQthcOGU+MXRIzcb3s1ULW9QQFEhXFEIUaK3Jdwy0RxncxYkg2LpwxXV0FqlYUjKEW92f+NUIZ2FhpKGug==",
"_location": "/@apollo/client",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "@apollo/[email protected]",
"name": "@apollo/client",
"escapedName": "@apollo%2fclient",
"scope": "@apollo",
"rawSpec": "3.5.2",
"saveSpec": null,
"fetchSpec": "3.5.2"
},
"_requiredBy": [
"#USER",
"/"
],
"_resolved": "https://registry.npmjs.org/@apollo/client/-/client-3.5.2.tgz",
"_shasum": "f0a4d8cb42f045e0527f081da9bb21c4fb53aeaf",
"_spec": "@apollo/[email protected]",
"_where": "/Users/keith.gillette/Code/TaskTrain",
"author": {
"name": "[email protected]"
},
"bugs": {
"url": "https://github.com/apollographql/apollo-client/issues"
},
"bundleDependencies": false,
"dependencies": {
"@graphql-typed-document-node/core": "^3.0.0",
"@wry/context": "^0.6.0",
"@wry/equality": "^0.5.0",
"@wry/trie": "^0.3.0",
"graphql-tag": "^2.12.3",
"hoist-non-react-statics": "^3.3.2",
"optimism": "^0.16.1",
"prop-types": "^15.7.2",
"symbol-observable": "^4.0.0",
"ts-invariant": "^0.9.0",
"tslib": "^2.3.0",
"zen-observable-ts": "^1.2.0"
},
"deprecated": false,
"description": "A fully-featured caching GraphQL client.",
"devDependencies": {
"@babel/parser": "7.16.2",
"@graphql-tools/schema": "8.3.1",
"@rollup/plugin-node-resolve": "11.2.1",
"@testing-library/react": "9.5.0",
"@testing-library/react-hooks": "7.0.2",
"@types/fast-json-stable-stringify": "2.0.0",
"@types/fetch-mock": "7.3.5",
"@types/glob": "7.2.0",
"@types/hoist-non-react-statics": "3.3.1",
"@types/jest": "27.0.2",
"@types/lodash": "4.14.176",
"@types/node": "16.11.6",
"@types/react": "17.0.34",
"@types/react-dom": "17.0.2",
"bundlesize": "0.18.1",
"cross-fetch": "3.1.4",
"crypto-hash": "1.3.0",
"fetch-mock": "9.11.0",
"glob": "7.2.0",
"graphql": "^16.0.0",
"jest": "27.3.1",
"jest-fetch-mock": "3.0.3",
"jest-junit": "13.0.0",
"lodash": "4.17.21",
"react": "17.0.2",
"react-dom": "17.0.2",
"recast": "0.20.5",
"resolve": "1.20.0",
"rimraf": "3.0.2",
"rollup": "2.50.5",
"rollup-plugin-terser": "7.0.2",
"rxjs": "6.6.7",
"subscriptions-transport-ws": "0.11.0",
"terser": "5.9.0",
"ts-jest": "27.0.7",
"ts-node": "10.4.0",
"typescript": "4.4.4",
"wait-for-observables": "1.0.3",
"whatwg-fetch": "3.6.2"
},
"homepage": "https://www.apollographql.com/docs/react/",
"keywords": [
"apollo",
"graphql",
"react",
"hooks",
"client",
"cache"
],
"license": "MIT",
"main": "./main.cjs",
"module": "./index.js",
"name": "@apollo/client",
"peerDependencies": {
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0",
"react": "^16.8.0 || ^17.0.0",
"subscriptions-transport-ws": "^0.9.0 || ^0.11.0"
},
"peerDependenciesMeta": {
"react": {
"optional": true
},
"subscriptions-transport-ws": {
"optional": true
}
},
"private": false,
"publishConfig": {
"access": "public"
},
"react-native": {
"./dist/cache/inmemory/fixPolyfills.js": "./cache/inmemory/fixPolyfills.native.js"
},
"repository": {
"type": "git",
"url": "git+https://github.com/apollographql/apollo-client.git"
},
"sideEffects": false,
"type": "module",
"types": "./index.d.ts",
"version": "3.5.2"
} |
@KeithGillette Thanks for double checking! While I'm confident Since different people published v3.5.2 and v3.5.0-v3.5.2, it's possible we (@hwillson @brainkim and I) need to align our publishing workflows better. Good to know. |
Thanks, @benjamn. I confirm that release 3.5.3 resolves this typings issue. You know that none of the 3.5 releases are published on NPMJS, right? 3.4.17 is still listed as the latest version in the registry. |
@KeithGillette Yep, we’re doing some additional checks live because no one would download the beta 😢 should be set to latest soon. |
Has this issue been resolved indeed? I am getting below error message. I know it's reflected in a different library package
|
Intended outcome:
Updating from
3.4.17
to^3.5.0
should work without error.Actual outcome:
Building a project depending on
@apollo/[email protected]
generates transpilationerror TS2688: Cannot find type definition file for 'zen-observable'.
whentsc
is run with defaultskipLibCheck: false
:How to reproduce the issue:
Run
tsc
on project including@apollo/[email protected]
withtsconfig.json
leaving defaultskipLibCheck: false
.Versions
The text was updated successfully, but these errors were encountered: