Open HiteshG opened 2 days ago
I am facing same issue
@HiteshG Below guide resolve my issue
.babelrc
FileCreate a .babelrc
file to configure Next.js to use Babel:
echo '{
"presets": ["next/babel"]
}' > .babelrc
next.config.js
Ensure that SWC minification is disabled by creating or updating your next.config.js
file:
echo "module.exports = {
swcMinify: false,
};" > next.config.js
Install the necessary Babel runtime dependencies:
npm install @babel/runtime regenerator-runtime --save
Clear the cache and reinstall your dependencies to ensure a clean setup:
rm -rf .next && npm install --force
Start your development server:
npm run dev
Describe the bug
⚠ Attempted to load @next/swc-linux-x64-gnu, but an error occurred: Cannot load native addon because loading addons is disabled: /home/project/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node ⚠ Attempted to load @next/swc-linux-x64-musl, but an error occurred: Cannot load native addon because loading addons is disabled: /home/project/node_modules/@next/swc-linux-x64-musl/next-swc.linux-x64-musl.node ⨯ Failed to load SWC binary for linux/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
It is not laoding
Link to the Bolt URL that caused the error
https://bolt.new/~/sb1-brraou
Steps to reproduce
Expected behavior
Web app is not rendering as per requested. Tried multiple times.
Screen Recording / Screenshot
No
Platform
Additional context
No