Skip to content

Adding withWorkflow to next.config breaks the entire app #92

@MendyLanda

Description

@MendyLanda

Existing next project, version 15.4.5
Using --turbopack
It's a turborepo monorepo

Only thing that I changed from the working version is I installed the workflow package, and I exported the config with the withWorkflow wrapper.

Image
[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.cwd*1*()
  ⚠️  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* path*4*["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:
  webpack_loaders:
    [turbopack-node]/transforms/transforms.ts
    [turbopack-node]/transforms/webpack-loaders.ts


Call Stack
7

Hide 5 ignore-listed frame(s)
<unknown>
error: [turbopack-node]/transforms/transforms.ts (53:10)
<unknown> (Error:
[turbopack-node]/transforms/transforms.ts (53:10)
Object.getCompilationErrors
../../node_modules/next/src/server/dev/hot-reloader-turbopack.ts (949:23)
DevBundlerService.getCompilationError
../../node_modules/next/src/server/lib/dev-bundler-service.ts (52:51)
DevServer.getCompilationError
../../node_modules/next/src/server/dev/next-dev-server.ts (1030:38)
DevServer.findPageComponents
../../node_modules/next/src/server/dev/next-dev-server.ts (994:39)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions