Comments (1)
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)
- npm ERR! Missing script: "test" HOT 1
- Live demo link is broken HOT 2
- Tags in project card going out of card
- Links do not work after building HOT 2
- Error: Could not find a production build in the '/Users/dmitriymalayev/Desktop/portfolio_website-STARTER/.next' directory. Try building your app with 'next build' before starting the production server. https://nextjs.org/docs/messages/production-start-no-build-id HOT 4
- <Button> that opens to a new Tab HOT 1
- blank screen page after sign in with goolgle
- Live preview unavailable
- Error: error:0308010C:digital envelope routines::unsupported HOT 9
- Hero section Button not working
- Not supported HOT 1
- Contact form gets submitted even if all the fields are empty HOT 4
- > Contact form gets submitted even if all the fields are empty, that is not a great user experience. It would be better if there were snackbars raising empty fields issue. HOT 1
- The package.json file is a configuration file that contains important metadata about your project, including the project name, version number, and dependencies. HOT 1
- Invalid hook call. Hooks can only be called inside of the body of a function component HOT 2
- A trede and investing
- NPM install failed
- this error occurs when i start the react app
- Hi HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portfolio_website.