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 badges9 Answers
Reset to default 6100% 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
版权声明:本文标题:javascript - Next.js 13 Error: Byte Index Out of Bounds on 'npm run dev' - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745674313a2669757.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论