Code Monkey home page Code Monkey logo

tiktok-clone's Issues

npm run dev blank page

Environment

node v16.17.1
npm 8.15.0

Steps to reproduce

  1. npm i
  2. change import to relative paths
--- a/src/pages/Home/index.jsx
+++ b/src/pages/Home/index.jsx
@@ -1,5 +1,5 @@
-import FeedVideos from "@src/components/FeedVideos/index.jsx";
-import NavBar from "@src/components/NavBar/index.jsx";
+import FeedVideos from "../../components/FeedVideos/index.jsx";
+import NavBar from "../../components/NavBar/index.jsx";

 export default function Home() {
   return (
diff --git a/src/pages/Login/index.jsx b/src/pages/Login/index.jsx
index 9ee3228..07c9a44 100644
--- a/src/pages/Login/index.jsx
+++ b/src/pages/Login/index.jsx
@@ -1,4 +1,4 @@
-import { supabase } from "@src/services/supabase.js";
+import { supabase } from "../../services/supabase.js";

 export default function Login() {
   const handleClick = async () => {
diff --git a/src/pages/Upload/index.jsx b/src/pages/Upload/index.jsx
index f89e068..8154dc5 100644
--- a/src/pages/Upload/index.jsx
+++ b/src/pages/Upload/index.jsx
@@ -1,7 +1,7 @@
 import clsx from "clsx";
 import { useEffect, useState } from "react";
 import { useDropzone } from "react-dropzone";
-import { publishVideo, uploadVideo } from "@src/services/index.js";
+import { publishVideo, uploadVideo } from "../../services/index.js";
 import styles from "./styles.module.css";

 export default function Upload() {

Result

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.