Typescript Compile Error: Cannot find namespace JSX

See original GitHub issue

Describe the bug

Tested Versions: 3.0.12, 3.0.10 Typescript Version: 3.3.3333


vue-slider-component/typings/vue-slider.d.ts(108,15):

TS2503: Cannot find namespace 'JSX'.

Reverting to 2.8.14 resolves issue.

Additional context (If there is no relevant content, please delete the block)

Add any other context or screenshots about the feature request here.

Environment (If you feel unrelated, please delete the block)

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
NightCatSamacommented, Mar 14, 2019

The first problem has been discovered, I should install vue-property-decorator to dependencies instead of devDependencies.

The second question I just need to use /// <reference path="./shims-tsx.d.ts" /> to introduce the JSX statement.

But I don’t have the latest code right now, I will update a new version later.

@darylteo @sleewoo Thanks for feedback.

0reactions
NightCatSamacommented, Mar 15, 2019

Fixed in version 3.0.13 😃 .

Read more comments on GitHub >

github_iconTop Results From Across the Web

5 - Stack Overflow
Angular9/Typescript3.8/Babylon4.1.0 - Typescript compilation error - Cannot find module 'react'/Cannot find namespace 'JSX' · Subscribe to RSS.
Read more >
Babylon4.1.0 inspector package - Typescript compilation error
Babylon4.1.0 inspector package - Typescript compilation error - Cannot find module 'react'/Cannot find namespace 'JSX'.
Read more >
Cannot find namespace Context error in React (TypeScript)
To solve the "Cannot find namespace context" error in React typescript, use a .tsx extension for the files in which you use JSX,...
Read more >
Documentation - JSX - TypeScript
JSX is an embeddable XML-like syntax. It is meant to be transformed into valid JavaScript, though the semantics of that transformation are ...
Read more >
Cannot find namespace 'ctx' error when creating Context with ...
[Solved]-Cannot find namespace 'ctx' error when creating Context with react - typescript-Reactjs ... Your file extension is most likely .ts instead of .tsx...
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