You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello guys, I started a new project on vite with deno and react. But something went wrong:
import{useState}from"react";// !!!!!! Module '"file:///workspace/frontend/src/assets/react.svg"' has no default export.deno-ts(1192)importreactLogofrom"./assets/react.svg";import"./App.css";functionApp(){const[count,setCount]=useState(0);return(<><imgsrc="/vite-deno.svg"alt="Vite with Deno"/><div><ahref="https://vitejs.dev"target="_blank"><imgsrc="/vite.svg"className="logo"alt="Vite logo"/></a><ahref="https://reactjs.org"target="_blank"><imgsrc={reactLogo}className="logo react"alt="React logo"/></a></div>
...
}exportdefaultApp;
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello guys, I started a new project on vite with deno and react. But something went wrong:
I tried to make
svg.d.ts
but it doesn't work too. How can I fix this manually (without plugins)?
Beta Was this translation helpful? Give feedback.
All reactions