Advertisement
Guest User

Untitled

a guest
Feb 9th, 2025
24
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. index.tsx:1:8 - error TS1259: Module '"C:/Users/(username)/Downloads/Mistral/node_modules/@types/react/index"' can only be default-imported using the 'esModuleInterop' flag
  2.  
  3. 1 import React, { useState } from 'react';
  4. ~~~~~
  5.  
  6. node_modules/@types/react/index.d.ts:65:1
  7. 65 export = React;
  8. ~~~~~~~~~~~~~~~
  9. This module is declared with 'export =', and can only be used with a default import when using the 'esModuleInterop' flag.
  10.  
  11. index.tsx:1374:5 - error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
  12.  
  13. 1374 <div style={styles.container}>
  14. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  15.  
  16. index.tsx:1375:7 - error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
  17.  
  18. 1375 <h1 style={styles.title}>💘 Love Quotes 💘</h1>
  19. ~~~~~~~~~~~~~~~~~~~~~~~~~
  20.  
  21. index.tsx:1376:7 - error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
  22.  
  23. 1376 <div style={styles.quoteBox}>
  24. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  25.  
  26. index.tsx:1377:9 - error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
  27.  
  28. 1377 <p style={styles.quote}>{quote || "Click 'New Quote' to get inspired!"}</p>
  29. ~~~~~~~~~~~~~~~~~~~~~~~~
  30.  
  31. index.tsx:1379:7 - error TS17004: Cannot use JSX unless the '--jsx' flag is provided.
  32.  
  33. 1379 <button style={styles.button} onClick={getRandomQuote}>💟 New Quote 💟</button>
  34. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  35.  
  36. node_modules/@types/react/index.d.ts:46:7 - error TS2304: Cannot find name 'Iterable'.
  37.  
  38. 46 | Iterable<React.ReactNode>
  39. ~~~~~~~~
  40.  
  41. node_modules/@types/react/index.d.ts:426:10 - error TS2456: Type alias 'ReactNode' circularly references itself.
  42.  
  43. 426 type ReactNode =
  44. ~~~~~~~~~
  45.  
  46. node_modules/@types/react/index.d.ts:431:11 - error TS2304: Cannot find name 'Iterable'.
  47.  
  48. 431 | Iterable<ReactNode>
  49. ~~~~~~~~
  50.  
  51.  
  52. Found 9 errors in 2 files.
  53.  
  54. Errors Files
  55. 6 index.tsx:1
  56. 3 node_modules/@types/react/index.d.ts:46
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement