Could not find a declaration file for module 'rxjs' #6429
Unanswered
seanplwong
asked this question in
Q&A
Replies: 1 comment
-
Semper Fidelis
…On Fri, May 28, 2021, 01:19 seanplwong ***@***.***> wrote:
When I upgrade rxjs to 7.1.0 and typescript to 4.3.2, ts will complain
about rxjs in ubuntu but not in mac os. However, rxjs/fetch's dts can be
resolved correctly.
anyone got any idea?
package.json:
{
"name": "",
"version": "4.1.1",
"keywords": [
"http",
"http-client"
],
"license": "ISC",
"main": "dist/cjs/index.js",
"module": "dist/es-node/index.js",
"browser": "dist/es-browser/index.js",
"directories": {
"lib": "dist",
"test": "__tests__"
},
"files": [
"dist",
"types"
],
"types": "./types",
"sideEffects": false,
"scripts": {
"build:src:esm": "cross-env BABEL_ENV=esm babel --extensions \".js,.ts\" --source-maps --ignore 'src/**/*.test.js,src/**/*.d.ts,src/**/*.test.ts' -d dist/es-browser src",
"build:src:cjs": "cross-env BABEL_ENV=commonjs-node babel --extensions \".js,.ts\" --source-maps --ignore 'src/**/*.test.js,src/**/*.d.ts,src/**/*.test.ts' -d dist/cjs src",
"build:src:es-node": "cross-env BABEL_ENV=es-node babel --extensions \".js,.ts\" --source-maps --ignore 'src/**/*.test.js,src/**/*.d.ts,src/**/*.test.ts' -d dist/es-node src",
"build:src": "npm-run-all --parallel build:src:*",
"build:types": "tsc -p tsconfig.typedef.json --emitDeclarationOnly -d --declarationDir ./types",
"build": "run-s build:*",
"rebuild": "run-s clean build",
"clean": "rimraf dist types",
"test:type": "tsc"
},
"devDependencies": {
***@***.***/cli": "^7.12.16",
***@***.***/core": "^7.12.16",
***@***.***/preset-env": "^7.12.16",
***@***.***/uuid": "^8.3.0",
"rimraf": "^3.0.2",
"typescript": "^4.3.2"
},
"dependencies": {
***@***.***/runtime": "^7.12.13",
"cross-env": "^7.0.3",
"npm-run-all": "^4.1.5",
"rxjs": "^7.1.0",
"uuid": "^8.3.2"
}
}
tsconfig.json:
{
"compilerOptions": {
"allowJs": true,
"checkJs": false,
"esModuleInterop": true,
"downlevelIteration": true,
"lib": ["esnext", "dom"],
"module": "commonjs",
"noUnusedLocals": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true,
"target": "esnext",
"outDir": "build",
"noEmit": true,
"importsNotUsedAsValues": "error"
},
"include": ["src"]
}
import { from } from 'rxjs'; // Could not find a declaration file for module 'rxjs'.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#6429>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ARXHVJNK7QF4H2H24NHGF4TTP5G2HANCNFSM45WA3OYA>
.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I upgrade
rxjs
to 7.1.0 andtypescript
to 4.3.2, ts will complain about rxjs in ubuntu but not in mac os. However,rxjs/fetch
's dts can be resolved correctly.anyone got any idea?
package.json
:tsconfig.json
:Beta Was this translation helpful? Give feedback.
All reactions