Open yeshwantthota opened 1 year ago
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?v=2372342d' does not provide an export named 'default' (at About.jsx:11:8) this issue can be resolved by {} import { tilt } from 'tilt'; // ^^^ name of export
import { tilt } from 'tilt'; not working @Smr777
@niladrix719 close and restart the server, it works for me
this is what i am getting after restart @yeshwantthota
import { Tilt } from "react-tilt"; it should be like this
oh thanks mate @yeshwantthota
It happens to me when I refresh the page. I restart the server but it still keep blank.
It happens to me when I refresh the page. I restart the server but it still keep blank.
what error you are getting in the console?
There were no errors on the console. The dev tools show it seems nothing was loaded. I just type the code again and it works😂.
Use react-parallax-tilt instead
Uninstall react tilt and install parallax tilt (npm install react-parallax-tilt) ,
import is almost the same, use import Tilt from 'react-parallax-tilt';
npm install react-parallax-tilt import Tilt from 'react-parallax-tilt'; replace // import Tilt from "react-tilt"; your code will working fine and please mark the issue solved
npm install react-tilt import { Tilt } from "react-tilt";
Use react-parallax-tilt instead
Uninstall react tilt and install parallax tilt (npm install react-parallax-tilt) ,
import is almost the same, use import Tilt from 'react-parallax-tilt';
This is working, Thanks for sharing
It happens to me when I refresh the page. I restart the server but it still keep blank.
what error you are getting in the console?
import { Tilt } from "react-tilt"; it should be like this
it's working
import { Tilt } from "react-tilt"; it should be like this
Thank you, I have been struggling for two days only to solve this error. This solved it. Than you man.
welcome bro
@Noman-Nom thanks for the help bro. but can you explain why that happens?
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?v=3743f72a' does not provide an export named 'default' (at Works.jsx:2:8)
Screen becomes blank when react tilt is used in About.js page