Skip to main content

All Questions

Tagged with
0 votes
1 answer
46 views

How do I trace errors in Next.js?

Error tracing is quite difficult in Next since it shows the path of the file in the build folder, how can I trace back to where the error originally occurred in my project folder structure? I have ...
OmarAbouzeid95's user avatar
-1 votes
0 answers
27 views

Next.js Build failed because of webpack errors: CssSyntaxError

I've been stuck and going all over internet trying to figure something that prevents my app to be build on Vercell (well locally as well). npm run dev - works great, no issues stylelint and eslint ...
Fallen Angel's user avatar
1 vote
0 answers
48 views

Utilize react component over URLs dyanamically

I have a React component say TEST.TSX , I have compiled the .tsx file to .js and uploaded it to GitHub, so that I can server it over JsDelivr. Can I use the CDN in another react app to utilize the ...
Pradeep Yadav's user avatar
1 vote
0 answers
63 views

Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function [closed]

I'm new to next.js and I'm facing this error from past two days but can't find any way to debug it: Error: (0 , react__WEBPACK_IMPORTED_MODULE_0__.createContext) is not a function after deep research,...
Abdul Basit's user avatar
0 votes
0 answers
58 views

Excluding dependencies from bundle (NextJS & Turbopack)

I am using package in my NextJS which includes modules for React Native that need to be excluded. As part of a migration to move to Turbopack from Webpack, I need to find a way to exclude these ...
Mark Barton's user avatar
0 votes
0 answers
28 views

Icon Component with Dynamic SVG Imports vs Bundle Size next.js - v14.2.3

I am trying to create an Icon component in a Next.js application that imports SVGs dynamically without significantly increasing the bundle size. Despite using various methods such as require.context(),...
Kiran Raj R's user avatar
0 votes
0 answers
9 views

Next 13.5.2 does not resolve ESM modules correctly in imported packages

I import package A in a Next JS application. Package A imports an icon from @mui/icons-material like this import Icon from "@mui/icons-material/Icon". This causes an error, as Icon looks ...
Łukasz Karczewski's user avatar
1 vote
1 answer
69 views

Export React as one inline HTML file

I am making one-page websites for particular service that accepts only single inline html files. I want to make these webpages as modularly as possible (to make many versions of them) and am thus ...
rass3's user avatar
  • 11
0 votes
0 answers
34 views

NextJS: Error: Cannot find module from [dot]next folder even though the file exists

I have a simple next application where /admin route lists the records and /new route open the form and after submitting the records it again redirects to the /admin page. When I land on the /admin ...
TMA's user avatar
  • 1,479
0 votes
0 answers
27 views

Nextjs 404 appears on all assets (js, css) after output export

For example <script src="/_next/static/chunks/webpack-12345.js" async=""></script> If changed to <script src="_next/static/chunks/webpack-12345.js" async=&...
aboutjquery's user avatar
0 votes
1 answer
66 views

NextJS React production ready with fontawesome icons

How should I decreate the size of the bundles? We added fortawesome/fontawesome, but only some icons are used, about 20. Is it true that the bundle contains all the icons from the fontawesome icon ...
Zoltan Hernyak's user avatar
0 votes
1 answer
32 views

HookWebpackError: Cannot read properties of undefined (reading '0')

Can somebody tell me why am I having this issue while running pnpm run build. This is a Next.js project. My package.json: { "private": true, "scripts": { "dev": &...
Sintu Boro's user avatar
0 votes
0 answers
38 views

Why does (0, o.createContext) and (0, i.AI) result in "not a function" TypeErrors during the Next.js build process?

I am currently working on a Next.js application and during the build process, I am encountering two specific TypeErrors: (0, o.createContext) is not a chainable function and (0, i.AI) is not a ...
Abdlrhman Manoufali's user avatar
0 votes
0 answers
187 views

How do I allow import.meta in nextjs _next/static/media directory?

I'm creating an app which uses wasm and other JavaScript files which I personally have not created. These files generate a file which is stored at this url: http://localhost:3000/_next/static/media/...
charlietlamb's user avatar
0 votes
0 answers
54 views

how to stop nextjs from combining all css modules into one css file in production?

I am currently working on optimizing Nextjs website for SEO. My styling option for the sites has been using css modules. I realized that Nextjs will combine all of them into one css file in production ...
ThomasH.Allen's user avatar

15 30 50 per page
1
2 3 4 5
59