-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Build error when using rxjs-compat: All declarations of 'observable' must have identical modifiers. #3769
Comments
Dupe of #3697? |
Looks likely by reading error message. |
interface SymbolConstructor {
readonly observable: symbol;
readonly iterator: symbol;
readonly asyncIterator: symbol;
} as does declare global {
export interface SymbolConstructor {
readonly observable: symbol;
}
} The declaration in |
#3773 merged, is there release ETA ? |
got this error. how to workaround until release please? |
@andreimcristof fallback your types/node version |
@vincent-cm thanks, it worked. cheers |
this has been fixed in 6.2.1 https://www.npmjs.com/package/rxjs/v/6.2.1 |
Confirmed. 6.2.1 working for me. |
The problem is still present with latest versions:
|
@Adappter The declaration is You might want to update to the latest |
this is the output of npm list rxjs:
I installed the latest @types/nodes 10.5.1. I can also see the same declarations in both files. But I still get the error. Also after reinstalled node modules |
@Adappter You should be able to verify, yourself, that the In any case, if the two declarations are the same, you should open another issue instead of commenting on this issue - which is closed. As a general rule, it's better to create a new issue rather than comment on one that's closed. Just reference the closed issue from the newly opened one, if you suspect they are related. |
Alright I'll have a look at will open a new issue if necessary |
Bug Report
Current Behavior
A clear and concise description of the behavior.
ERROR in node_modules/rxjs/internal/symbol/observable.d.ts(4,9): error TS2687: All declarations of 'observable' must have identical modifiers.
node_modules/@types/node/index.d.ts(167,14): error TS2687: All declarations of 'observable' must have identical modifiers.
Reproduction
After installing rxjs 6.2.0 and rxjs-compat 6.2.0, navigate to
'/node_modules/rxjs/internal/symbol/observable.d.ts'
and
'./node_modules/@types/node/index.d.ts'
The IDE will indicate the error line
readonly observable: symbol;
Expected behavior
The source code has error when using IDE to inspect.
The error should not appear.
Environment
Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.
https://imgur.com/a/eMdeN6k
The text was updated successfully, but these errors were encountered: