We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
There seems to be an issue with the version of jest in the current packages.json file
npm install Works fine. but:
npm start Fails with:
`/rtk-github-issues-example/node_modules/jest-diff/build/diffLines.d.ts TypeScript error in /rtk-github-issues-example/node_modules/jest-diff/build/diffLines.d.ts(8,13): '=' expected. TS1005
6 | */ 7 | import { Diff } from './cleanupSemantic';
8 | import type { DiffOptions } from './types'; | ^ 9 | export declare const diffLinesUnified: (aLines: string[], bLines: string[], options?: DiffOptions | undefined) => string; 10 | export declare const diffLinesUnified2: (aLinesDisplay: string[], bLinesDisplay: string[], aLinesCompare: string[], bLinesCompare: string[], options?: DiffOptions | undefined) => string; 11 | export declare const diffLinesRaw: (aLines: string[], bLines: string[]) => Diff[];`
In packages.json, I replaced: "@types/jest": "24.0.18"
with: "@types/jest": "^24.2.2"
And the app works fine nowl.
Thanks for such a detailed example
The text was updated successfully, but these errors were encountered:
Same here, but I solved it by updating typescript to the latest version (4.0.3). It says here that you need typescript >= 3.8.2.
Sorry, something went wrong.
The same
the same,but when I use 'yarn install',everything is ok!
Updating to the latest version of Typescript solved the issue.
No branches or pull requests
Hello,
There seems to be an issue with the version of jest in the current packages.json file
`/rtk-github-issues-example/node_modules/jest-diff/build/diffLines.d.ts
TypeScript error in /rtk-github-issues-example/node_modules/jest-diff/build/diffLines.d.ts(8,13):
'=' expected. TS1005
In packages.json, I replaced:
"@types/jest": "24.0.18"
with:
"@types/jest": "^24.2.2"
And the app works fine nowl.
Thanks for such a detailed example
The text was updated successfully, but these errors were encountered: