admin管理员组

文章数量:1435859

To install Next.js 13.4.12, I am using the mand npx [email protected]. Everything works fine and all the dependencies are installed with no problems. However as soon as I run the server npm run dev. I get this weird error -

byte index 6 is out of bounds of \ude
⨯ ./app/layout.tsx
Error: failed to process byte index 6 is out of bounds of \ude

Import trace for requested module:
./app/layout.tsx
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.

Here is the screenshot for the installtion -

Here is the screenshot of the error -

The error log can be found on pastebin. (Please take a look if needed, I uploaded it to pastebin to not make a lot of clutter here)

Please help me out with this I have tried a lot of things but unfortunately nothing seems to work. Thank you.

To install Next.js 13.4.12, I am using the mand npx [email protected]. Everything works fine and all the dependencies are installed with no problems. However as soon as I run the server npm run dev. I get this weird error -

byte index 6 is out of bounds of \ude
⨯ ./app/layout.tsx
Error: failed to process byte index 6 is out of bounds of \ude

Import trace for requested module:
./app/layout.tsx
 ⚠ Fast Refresh had to perform a full reload due to a runtime error.

Here is the screenshot for the installtion -

Here is the screenshot of the error -

The error log can be found on pastebin. (Please take a look if needed, I uploaded it to pastebin to not make a lot of clutter here)

Please help me out with this I have tried a lot of things but unfortunately nothing seems to work. Thank you.

Share Improve this question asked Oct 12, 2023 at 6:50 Ujjwal SaxenaUjjwal Saxena 1411 silver badge11 bronze badges
Add a ment  | 

9 Answers 9

Reset to default 6

100% works

I had the same problem and the problem was project folder name

Its name shouldn't start with

ude

and one possible solution is to rename your project folder or move it to a different path that does not start with “ude”.

Faced the same issue. Tried downgrading the next version to 13.4.6 and it worked.

I had a week old project which was working and this was the difference between the old & the new one which I created today.

I face exact this same problem,

So I change folder name --> form "udemy-clone" to "tutorial-portal" &
in package.json file --> "name": "tutorial-portal"

& its work for me...

NOTE: not chose any name that stars with "ude"

try running on powershell. It helped me

I solved the problem by creating the project in the ex root directory. c:\projects\myapp. I believe that the piler gets lost when trying to create the project in a folder within a user subdirectory.

None of the above solutions worked for me (changing the directory; downgrading led to a separate crash). The current workaround I am using is to run Next.js in wsl2 (Ubuntu in my case).

I was facing the same issue. I created the NextJs project inside a folder named "udemy". After changing the folder name the issue was solved!

  • Keep in mind, that the name of the folder or file should not start with "ude"
  • it includes all the parent folders of the project, no parent folder should start with "ude"

I encountered the same issue. I managed to solve the issue by REMOVING ".next" folder and run "npm run dev" again, and it works for me.

For me, the tutorial was using next version 14.0.3, so I changed that to 14.1.0, ran npm install again and ran the project and it worked!

本文标签: javascriptNextjs 13 Error Byte Index Out of Bounds on 39npm run dev39Stack Overflow