Skip to content

cant run docs locally on windows #2170

@Unknown47Dream

Description

@Unknown47Dream

Node: v24.1.0
OS: Windows

npm start crashes on "preparing local preview" with this error:

Error: ENOENT: no such file or directory, open 'C:\Users\xxx.mintlify\mint\apps\client.next\required-server-files.json'
at Object.readFileSync (node:fs:433:20)
at setupNext (file:///D:/Workspace/ton/docs/node_modules/@mintlify/previewing/dist/local-preview/setupNext.js:29:32)
at run (file:///D:/Workspace/ton/docs/node_modules/@mintlify/previewing/dist/local-preview/run.js:51:34)
at dev (file:///D:/Workspace/ton/docs/node_modules/@mintlify/previewing/dist/local-preview/index.js:58:11) {
errno: -4058,
code: 'ENOENT',
syscall: 'open',
path: 'C:\Users\xxx\.mintlify\mint\apps\client\.next\required-server-files.json'
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind: bugSomething isn't working or doesn't seem right

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions