Giter VIP home page Giter VIP logo

Comments (1)

FalconMCMXCIX avatar FalconMCMXCIX commented on May 26, 2024

The error messages indicate that there are a few issues with your setup. Let's address them step by step:

Missing yarn Command:

bash

/bin/sh: yarn: command not found
Ensure that Yarn is installed. You can install it globally using npm:

bash

npm install -g yarn
Missing @babel/runtime Dependency:

vbnet

Error: Failed to resolve "@babel/runtime/regenerator"
You need to install the @babel/runtime package. Run:

bash

npm install @babel/runtime
Custom Babel Configuration Warning:

rust

Disabled SWC as replacement for Babel because of custom Babel configuration ".babelrc"
Next.js suggests that you might not need a custom Babel configuration. However, if you need it, ensure your .babelrc is correctly configured. You can refer to Next.js documentation for more details.

Missing Build Manifest File:

perl

Error: ENOENT: no such file or directory, open '/Users/liudong/My Project/portfolio_website-STARTER/.next/fallback-build-manifest.json'
This usually happens if there are issues during the build process. Ensure all necessary dependencies are installed and there are no errors during the build.

Clear Next.js Cache and Rebuild:
Sometimes, clearing the .next folder and rebuilding can solve various issues. Run:

bash

rm -rf .next
npm run dev
Check for Correct Node.js Version:
Ensure you're using a compatible Node.js version with your Next.js project. You can use nvm to manage and switch Node.js versions easily:

bash

nvm install --lts
nvm use --lts
Ensure All Dependencies are Installed:
Ensure all project dependencies are correctly installed. Run:

bash

npm install
Check next.config.js:
Ensure your next.config.js is correctly configured. You can enable SWC for styled-components as follows:

javascript

// next.config.js
module.exports = {
compiler: {
styledComponents: true,
},
}
Update Packages:
Make sure all your packages are up to date. Sometimes, updating to the latest versions can resolve issues:

bash

npm update
Check for Network Issues:
Make sure there are no network issues causing the failure to fetch or load resources.

After performing these steps, try running your development server again:

bash
npm run dev
If the issue persists, please share the updated error messages, and we can continue troubleshooting from there.

from portfolio_website.

Related Issues (20)

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.