Skip to content

部署失败,应该是Vercel修改成了Next.js #29

@Ireseey

Description

@Ireseey

错误代码如下:
ReferenceError: document is not defined
at /vercel/path0/node_modules/.pnpm/plyr@3.7.8/node_modules/plyr/dist/plyr.js:302:21
at /vercel/path0/node_modules/.pnpm/plyr@3.7.8/node_modules/plyr/dist/plyr.js:311:5
at /vercel/path0/node_modules/.pnpm/plyr@3.7.8/node_modules/plyr/dist/plyr.js:2:83
at Object. (/vercel/path0/node_modules/.pnpm/plyr@3.7.8/node_modules/plyr/dist/plyr.js:5:3)
at Module._compile (node:internal/modules/cjs/loader:1554:14)
at Object..js (node:internal/modules/cjs/loader:1706:10)
at Module.load (node:internal/modules/cjs/loader:1289:32)
at Function._load (node:internal/modules/cjs/loader:1108:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:220:24)

Build error occurred
Error: Failed to collect page data for /[...path]
at /vercel/path0/node_modules/.pnpm/next@13.1.6_react-dom@18.2.0_react@18.2.0/node_modules/next/dist/build/utils.js:963:15 {
type: 'Error'
}
 ELIFECYCLE  Command failed with exit code 1.
Error: Command "pnpm build" exited with 1
Exiting build container

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions