-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Import issues in latest version (25.2.0) #9703
Comments
Same issue here (v 24.0.18) |
Looks like maybe this PR did it? #9693 @SimenB any ideas? Not familiar with the |
Same on my side. When can you fix this. I have to make on urgent build for my Customer. |
It looks like you need typescript > 3.8.0 as support was just recently added - https://devblogs.microsoft.com/typescript/announcing-typescript-3-8-rc/ Also referenced here - facebook/create-react-app#8714 Installing typescript latest or at least v3.8.2 will fix it. |
@paulconlin ` 11 export type { DiffOptions, DiffOptionsColor } from './types';
|
Updating to ts 3.8.3 didn't fix it either. The only workaround we found was to pin the jest-diff version to an older one in package-lock.json |
Can confirm this on multiple Microsoft repos |
@HobbyProjects |
Make sure you do a full clean. Delete your node_modules and package-lock file, up the version, and then npm install. |
nothing helped. I have removed the package vor now and all test files that I can make a build :( |
Adding the following to your package.json should get you going for now, but please address this ASAP
|
I have the same issues as @HobbyProjects |
Sorry about this, working on a fix |
I also had to add "pretty-format" : "25.1.0" to it in order to solve the issue for pretty-format
Then I had to add the following to my package.json dev dependencies:
|
Fix published in 25.2.1, sorry about the inconvenience. |
I am still running into this on @jest/core 25.2.2 |
This issue was fixed in 25.2.3 |
I'm experiencing this problem with typescript 3.9.7 and jest 26.6:
|
I'm experiencing this problem with typescript 4.0.5 and jest 26.4.2: |
Ran into this issue and installing TS v3.8.3 solved it for me |
If you think you're still experiencing the issue reported in a closed issue, please open up a new issue with reproduction steps |
I just bumped into this error TypeScript error in /Users/mac/cerebro-wallet/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: Array<string>, bLines: Array<string>, options?: DiffOptions | undefined) => string;
10 | export declare const diffLinesUnified2: (aLinesDisplay: Array<string>, bLinesDisplay: Array<string>, aLinesCompare: Array<string>, bLinesCompare: Array<string>, options?: DiffOptions | undefined) => string;
11```
Any way to fix this |
I had the same issue. I was able to resolve it by installing the latest version of typescript globally. |
@Evie-ey Thx all of the above didn't do a thing. Your comment set me on the right path to solving this. |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
💥 Regression Report
Doing an npm i shows the import errors:
Last working version
25.1.0
Stopped working in version:
25.2.0
To Reproduce
just do a npm i
Steps to reproduce the behavior:
just do a npm i
Expected behavior
A clear and concise description of what you expected to happen.
jest -diff installs without any issues whatsoever
Link to repl or repo (highly encouraged)
Please provide either a repl.it demo or a minimal repository on GitHub.
Issues without a reproduction link are likely to stall.
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: