All Questions
15
questions
0
votes
0
answers
28
views
Next.JS 13+ and IE11
How can I make Next.JS 13 application to be compatible with IE11. it uses SWC and I'm not sure how to fix SCRIPT1010: Expected identifier and SCRIPT1002: Syntax error errors
0
votes
1
answer
283
views
Migrate from Babel to Nextjs SWC encountering Minified React error
When I removed my current .babelrc in order to force NextJS 13 using SWC instead. It's showing the error: Error: Minified React error #130. But when I add the .babelrc file again everything worked ...
1
vote
1
answer
129
views
Instagram-like CSS class names obfuscation for NextJS 14 with SWC
I noticed that Instagram Direct often use Tailwind CSS for class names. But somehow they managed to transform it to non-readable format (obfuscation), so people could not run bots for content crawling....
2
votes
0
answers
323
views
Why is Next.js trying to load @next/swc-linux-arm64-gnu despite .babelrc being present?
I am getting the error logs when trying to load a page in dev environment:
2024-03-11 17:17:06 yarn run v1.22.19
2024-03-11 17:17:06 $ next dev -p 4000
2024-03-11 17:17:10 Disabled SWC as ...
0
votes
1
answer
1k
views
Failed to Load SWC Binary Error in Next.js Development Server
I encountered an issue while running my Next.js project using the yarn run dev command. The error message is as follows in the image
Error Details:
Next.js Version: 14.0.3
Local Server: http://...
1
vote
0
answers
390
views
How Next.js support ESM and the building process?
Next.js 12 supports native ESM support. I would like to understand how Next.js supports ESM and the bundling process. The research process has not been smooth, so I would appreciate it if you could ...
0
votes
0
answers
134
views
Combining Babel Library in SWC Next.js: Integrate external Babel-dependent package while preserving SWC compilation
In my Next.js project, the primary compiler is SWC. However, I have a component that relies on an external library compiled with Babel. Is it feasible to configure Next.js to use Babel exclusively for ...
3
votes
1
answer
3k
views
SWC plugins not working / Any plugin I compile breaks Next js
The Next js framework uses the SWC compiler instead of Babel.
I need to write a plugin for SWC. Everything was working fine, but something happened. Now any plugin that I compile on my computer doesn'...
10
votes
2
answers
14k
views
"next/font" requires SWC although Babel is being used due to a custom babel config being present
Im facing this error when I try to run my Nextjs project using styled components.
This is my .babelrc
{
"plugins": [
[
"babel-plugin-styled-components",
{
...
1
vote
0
answers
190
views
Is there a way to omit a package or library from being minified or ignored by SWC?
So I am building an audio chatroom in Next.js. For the chatting and calling features, I am using Agora that makes use of the agora-rtm-sdk agora-rtm-sdk and agora-rtc-sdk-ng agora-rtc packages.
So ...
2
votes
1
answer
1k
views
Dynamic import failed with JEST and React testing library in nextjs 12 use SWC (not use babel)
I have problems about testing component that it's used dynamic import in nextjs 12.
I show up some info about technical:
NextJS 12 use SWC (not use babel)
React 18
Jest + React testing library
Here ...
3
votes
0
answers
475
views
Next.js 13 + Styled Components "Warning: Prop className did not match." error - how to migrate from babel to SWC?
When upgrading the Next version from 12 to 13 I got the error "Warning: Prop className did not match." pointing to styled-components. My initial setup was with babel, including babel-plugin-...
4
votes
0
answers
642
views
Module transpilation within a Next.js project with SWC
I have a project in Next.js and Typescript where I am trying to ensure code splitting and tree shaking works well for our purposes. I recently upgraded to Next.js 13.x and migrated from Babel to SWC.
...
0
votes
0
answers
2k
views
Style loading issue, screen flickering in Next.js with styled-components and SWC
It seems like a silly problem because it happens within milliseconds, but it's annoying. When loading and reloading the page, it's just like the HTML, within milliseconds the styles are loaded.
next....
3
votes
1
answer
2k
views
Migrating NextJS@11 to NextJS@12 with SWC config
I'm trying to migrate my NextJS App to version 12.
it's working properly using babel config, but I like to change the environment to swc.
I have the error below during production build:
./src/pages/...