Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update About.jsx #160

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update About.jsx
the current import section looks like : import Tilt from "react-tilt";we are facing this issue:
Uncaught SyntaxError: The requested module '/node_modules/.vite/deps/react-tilt.js?v=e9c1a88c' does not provide an export named 'default' (at About.jsx:2:8)

As per : https://www.npmjs.com/package/react-tilt

And using this, I was able to resolve this issue:
import { Tilt } from 'react-tilt'
  • Loading branch information
Mukeshsingh8 authored Aug 28, 2024
commit 0ecf7998c4c8af3ca430c8422145c7205bd32eca
2 changes: 1 addition & 1 deletion src/components/About.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from "react";
import Tilt from "react-tilt";
import { Tilt } from "react-tilt";
import { motion } from "framer-motion";

import { styles } from "../styles";
Expand Down