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.

How to configure with React? (TS) (NextJS)

See original GitHub issue
import "@vscode/webview-ui-toolkit";
function EmptyState() {
  return <vscode-progress-ring></vscode-progress-ring>;
}

will throw Property 'vscode-progress-ring' does not exist on type 'JSX.IntrinsicElements'.ts(2339)

Is there extra steps required to setup?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
atanasstercommented, Nov 18, 2021

@hawkticehurst , sorry I had missed that other conversation, and will add my use-case and comments there

1reaction
softmarshmallowcommented, Nov 11, 2021

Changing from

declare namespace JSX {
  interface IntrinsicElements {
    'vscode-progress-ring': any;
  }
}

to

declare global {
  namespace JSX {
    interface IntrinsicElements {
      "vscode-progress-ring": any;
    }
  }
}

did the trick

Read more comments on GitHub >

github_iconTop Results From Across the Web

Basic Features: TypeScript - Next.js
Next.js provides an integrated TypeScript experience, including zero-configuration set up and built-in types for Pages, APIs, and more.
Read more >
Using Next.js with TypeScript - LogRocket Blog
To create a new Next.js app, you can use Create Next App. Begin by opening your command-line interface (CLI) and running the command...
Read more >
A Guide for Next.js with TypeScript - Refine Dev
We can bootstrap a Next.js application with TypeScript by adding a --typescript or --ts flag to the create-next-app command like below:.
Read more >
How to set up a Next.js project with TypeScript and React
1. Initial setup · 2. Create a tsconfig.json file · 3. Install TypeScript & Test Server · 4. Convert to TypeScript (really simple)....
Read more >
How to Set Up Next.js With TypeScript - Jake Prins
If you start a new React project, you might want to consider Next.js and TypeScript. In this article, I explain why this would...
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