Skip to content

nextjs15.4 turbopack runtime error #357

@HM-Suiji

Description

@HM-Suiji

这个问题被修复了,但他貌似还有其他问题

Image

Runtime Error

[turbopack-node]/transforms/transforms.ts:53:10
lint TP1006 path.join(???0, (???2 ? ???5 : ???7)) is very dynamic
51 | }
52 | export const fromPath = (path: string) => {
53 | return join(contextDir, sep !== '/' ? path.replaceAll('/', sep) : path)
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
54 | }
55 |
56 | // Patch process.env to track which env vars are read

  • 0 process.cwd1()
    ⚠️ process.cwd is not specified in the environment
    ⚠️ This value might have side effects
  • 1 process.cwd: The Node.js process.cwd method: https://nodejs.org/api/process.html#processcwd
  • 2 (???3 !== "/")
    ⚠️ nested operation
  • 3 path4["sep"]
    ⚠️ unsupported property on Node.js path module
    ⚠️ This value might have side effects
  • 4 path: The Node.js path module: https://nodejs.org/api/path.html
  • 5 ???6["replaceAll"]("/", module<path, {}>["sep"])
    ⚠️ unknown callee object
  • 6 arguments[0]
    ⚠️ function calls are not analysed yet
  • 7 arguments[0]
    ⚠️ function calls are not analysed yet

Import trace:
[turbopack-node]/transforms/transforms.ts
[turbopack-node]/transforms/webpack-loaders.ts

Originally posted by @HM-Suiji in #351

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