Commit e86098d
authored
fix(next): use fileURLToPath for cross-platform path resolution (#14877)
Fixes #14880
## Summary
Fixes a bug where `getNextjsVersion()` fails to read the Next.js
package.json on Windows systems, causing errors like:
Error: ENOENT: no such file or directory, open
'F:\F:\data...\next\package.json'1 parent 25ef7d1 commit e86098d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
90 | 93 | | |
91 | 94 | | |
92 | 95 | | |
| |||
0 commit comments