question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Import issues in latest version (25.2.0)

See original GitHub issue

💥 Regression Report

Doing an npm i shows the import errors:

tsc -b . …/node_modules/jest-diff/build/diffLines.d.ts:8:13 - error TS1005: ‘=’ expected. 8 import type { DiffOptions } from ‘./types’; ~…/node_modules/jest-diff/build/diffLines.d.ts:8:34 - error TS1005: ‘;’ expected. 8 import type { DiffOptions } from ‘./types’; ~~~~~~~~~ …/node_modules/jest-diff/build/index.d.ts:10:13 - error TS1005: ‘=’ expected. 10 import type { DiffOptions } from ‘./types’; ~ …/node_modules/jest-diff/build/index.d.ts:10:34 - error TS1005: ‘;’ expected. 10 import type { DiffOptions } from ‘./types’; ~~~~~~~~~ …/node_modules/jest-diff/build/index.d.ts:11:1 - error TS1128: Declaration or statement expected. 11 export type { DiffOptions, DiffOptionsColor } from ‘./types’;

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:

npx: installed 1 in 3.108s

  System:
    OS: Windows 10 10.0.18363
    CPU: (4) x64 Intel(R) Core(TM) i7-6600U CPU @ 2.60GHz
  Binaries:
    Node: 12.4.0 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.10.1 - C:\Program Files (x86)\Yarn\bin\yarn.CMD
    npm: 6.13.7 - C:\Program Files\nodejs\npm.CMD

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:19
  • Comments:25

github_iconTop GitHub Comments

16reactions
paulconlincommented, Mar 25, 2020

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 - https://github.com/facebook/create-react-app/issues/8714

Installing typescript latest or at least v3.8.2 will fix it.

12reactions
heavenkiller2018commented, Nov 9, 2020

I’m experiencing this problem with typescript 4.0.5 and jest 26.4.2:

Read more comments on GitHub >

github_iconTop Results From Across the Web

ag-grid-angular - npm
AG Grid Angular Component. AG Grid is a fully-featured and highly customizable JavaScript data grid. It delivers outstanding performance, ...
Read more >
failed to resolve com.android.support:support-v7:25.2.0
If you are trying to get the support repository, this is the correct import: compile "com.android.support:support-v4:25.3.1".
Read more >
CLM Standard Collaboration Release Notes
Here is where you find maintenance updates for the collaboration part of CLM Standard. Check back often to get the latest enhancements and ......
Read more >
Recent Support Library Revisions - Android Developers
This page provides details about the most recent Support Library package releases. For earlier releases, see the Support Library Revisions Archive.
Read more >
React Grid: Get Started with AG Grid
The three lines above import the AgGridReact and AgGridColumn components, the grid "structure" stylesheet ( ag-grid.css ), and one of the available grid...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found