Next.js Discord

Discord Forum

webpack.cache.PackFileCacheStrategy/webpack.FileSystemInfo ERROR

Answered
MeKa posted this in #help-forum
Open in Discord
Original message was deleted.
Answered by Jboncz
Delete it.
View full answer

70 Replies

Avatar
@Jboncz "npm cache clean--force" doesn't work either.
Avatar
So @MeKa try moving the project to somewhere thats not the 'users' folder. Windows has really weird UAC settings on some of the default folders
Avatar
I don't think it could be related to this. Many of my projects are "on the desktop" and there is no problem. "Next.js 14.2.2" also causes such a problem.
Avatar
Desktop is fine. Put it on the desktop
users folder is special in windows
I did it on 14.2.2 with zero issues.
This is a windows issue im 99% certain
Avatar
The project is already on the desktop
Avatar
Ohhhhhhhhhhh
Wait one sec
Sorry sorry I misunderstood.
Can you navigate to "C:\Users\meka\node_modules"
Avatar
meka@MeKaPC MINGW64 ~/Desktop/mekasis
$ npm cache clean --force
npm WARN using --force Recommended protections disabled.


meka@MeKaPC MINGW64 ~/Desktop/mekasis
$ npm cache verify
Cache verified and compressed (~\AppData\Local\npm-cache\_cacache)
Content verified: 822 (499340508 bytes)
Content garbage-collected: 2 (756106 bytes)
Index entries: 822
Finished in 14.318s
There is no such folder.
Avatar
That is even more odd.
lol
let me think for a min
Avatar
one minute
There was.
Avatar
Hmmm?
There was a folder?
Avatar
There is a folder
Avatar
Whats in said folder?
Avatar
"C:\Users\meka\node_modules"
Avatar
You coppied my qoutes didnt you πŸ˜„
Avatar
Image
Avatar
Delete it.
Answer
Avatar
βœ“ Starting...
βœ“ Ready in 3.8s
β—‹ Compiling / ...
(node:16704) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)
βœ“ Compiled / in 8s (502 modules)
βœ“ Compiled in 1308ms (240 modules)
GET / 200 in 9381ms
Avatar
I mean progress eh?
Avatar
(node:16704) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ... to show where the warning was created)

So how can I fix this error?
Avatar
Great question. Show me your package.json
Avatar
It works. There's no problem.
{
  "name": "mekasis",
  "version": "0.1.0",
  "private": true,
  "scripts": {
    "dev": "next dev",
    "build": "next build",
    "start": "next start",
    "lint": "next lint"
  },
  "dependencies": {
    "@radix-ui/react-dialog": "^1.0.5",
    "@radix-ui/react-dropdown-menu": "^2.0.6",
    "@radix-ui/react-separator": "^1.0.3",
    "@radix-ui/react-slot": "^1.0.2",
    "@radix-ui/react-toast": "^1.1.5",
    "@radix-ui/react-tooltip": "^1.0.7",
    "class-variance-authority": "^0.7.0",
    "clsx": "^2.1.0",
    "lucide-react": "^0.372.0",
    "next": "14.2.2",
    "next-auth": "^5.0.0-beta.16",
    "next-themes": "^0.3.0",
    "nodemailer": "^6.9.13",
    "react": "^18",
    "react-dom": "^18",
    "react-icons": "^5.1.0",
    "tailwind-merge": "^2.3.0",
    "tailwindcss-animate": "^1.0.7",
    "zod": "^3.22.5"
  },
  "devDependencies": {
    "@types/node": "^20",
    "@types/react": "^18",
    "@types/react-dom": "^18",
    "eslint": "^8",
    "eslint-config-next": "14.2.2",
    "postcss": "^8",
    "tailwindcss": "^3.4.1",
    "typescript": "^5"
  }
}
Avatar
So its more than just a vanilla install πŸ˜‰
You need to find out what dependency has a dependency on punycode
Im sure theres an easy way to do it, but I would check the package.json of each module inside of your node_modules folder
Avatar
The punycode module is deprecated. Please use a userland alternative instead.
Avatar
Yeah, but its not YOUR dependency, which means another module is instead using that as a dep
Avatar
yes
Avatar
You cant really fix that per say
Well I mean you can, but I wouldnt recommend it lol find out which package is using it from that list
Avatar
It takes a lot of time πŸ˜„
Avatar
Wellllllll one sec
Get-ChildItem -Path "C:\Users\Jboncz\Downloads\testapp\my-app" -Filter "package.json" | ForEach-Object {
    $filePath = $_.FullName
    $fileContent = Get-Content $filePath -Raw
    if ($fileContent -match "punycode") {
        Write-Host "Phrase found in $filePath"
    }
}
You can run that in powershell
however, I would never suggest someone run something that they dont know what it does.
BUT that will find what files have the word "punycode" in it
At your descretion you can use that to find what package.json has the dep
Obviously you have to change the path πŸ˜„
but even if you find it you cant really fix it, but you can either find an alternative, or you can check their github and see if others are posting about it and see if the developer is aware.
Avatar
Ok thank you very much bro. Then let me deal with it later.
Avatar
Np np.
good luck!
Avatar
I have a problem with a different project of mine. I uploaded it to the server, but the "/panel" path does not work. If you know, you can try connecting to my computer. I upload the project to "Plesk" via "Docker".
It works very well on "localhost", but when I upload it to the server, I encounter an error.
Avatar
Im not going to connect to your computer πŸ˜‚
Sorry.
you can open another help forum with the error and I can try to take a look
Avatar
The virus is transmitted πŸ˜„
I have no idea how to open it.
Avatar
I mean it isnt even that, I would connect in a isolated vm, just not goiong to do it. Im watching movies. πŸ˜„
Open what? The error?
Idk what plesk is in any capacity. You should only test in a docker container on a local resource before deploying it, it can be troublesome to get the data after. Depends on the service provider.
Im going to step away for some dinner tho.
Avatar
Image
Ok brother, good night, I wish you a pleasant viewing.
Avatar
Probably your docker container isnt setup properly, gotta test locally, or find out how you can see the logs with the service provicer
Avatar
OK bro thanks.
Avatar
@MeKa please mark the answer to this question. Please also don’t delete original questions unless it contains secret credentials
Avatar
I completely deleted the "node_modules" folder in the "C:\Users*USER*\node_modules" folder and the problem was solved. Because the folder there did not represent any project.