react icon indicating copy to clipboard operation
react copied to clipboard

[DevTools Bug]: _jsxDEV is not a function

Open avishihora opened this issue 2 years ago • 2 comments

Website or app

https://lp-y3y1.onrender.com/

Repro steps

I have deployed my website on render. Render ( Hosting Platform ) shows me successful deploy but I am not able see anything. Can anyone guide me !?

How often does this bug happen?

Every time

DevTools package (automated)

No response

DevTools version (automated)

No response

Error message (automated)

No response

Error call stack (automated)

No response

Error component stack (automated)

No response

GitHub query string (automated)

No response

avishihora avatar Dec 13 '23 18:12 avishihora

Apologies for the typo. Here's the revised content:

<!DOCTYPE html>
<html lang="en">
<head>
  <!-- React Refresh scripts for development -->
  <script type="module">
    import { injectIntoGlobalHook } from "/@react-refresh";
    injectIntoGlobalHook(window);
    window.$RefreshReg$ = () => {};
    window.$RefreshSig$ = () => (type) => type;
  </script>

  <!-- Vite development client script -->
  <script type="module" src="/@vite/client"></script>

  <meta charset="UTF-8" />
  <link rel="icon" type="image/*" href="/src/assets/images/android-chrome-512x512.png" />
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />

  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  
  <!-- Your generated output.css -->
  <link href="/dist/output.css" rel="stylesheet" />
  
  <title>Avi Shihora</title>
</head>
<body>
  <div id="root"></div>
  
  <!-- Main React app script -->
  <script type="module" src="/src/main.jsx"></script>
</body>
</html>

This HTML file contains the foundational structure for your application, including linked React scripts, stylesheets, and the entry point for your application within the <div id="root"> tag. Additionally, it includes a stylesheet named output.css, which is located at /dist/output.css. And the file name is output.css for some reason

Janelaxagh avatar Dec 15 '23 15:12 Janelaxagh

Hi, I looked at your link and I think I found the reason for this issue in Vite. They offer several solutions. You can try updating the React plugin for Vite or try changing the env.

mxmalykhin avatar Dec 22 '23 03:12 mxmalykhin

This doesn't look like a React DevTools problem, so I am going to close this. Please reopen if you can provide more context on this, including the reproducer.

hoxyq avatar Jan 02 '24 13:01 hoxyq