Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The "path" argument must be of type string or an instance of Buffer or URL (react-dom) #31552

Closed
rtritto opened this issue Nov 17, 2021 · 12 comments

Comments

@rtritto
Copy link

rtritto commented Nov 17, 2021

What version of Next.js are you using?

12.0.5-canary.0-12.0.8-canary.20

What version of Node.js are you using?

14.17.0

What browser are you using?

Irrelevant

What operating system are you using?

Windows

How are you deploying your application?

Irrelevant

Describe the Bug

I updated next.js from v12.0.4 to v12.0.5-canary.0 and I got a compiling error from react-dom.

Expected Behavior

No error

To Reproduce

  1. yarn init -y
  2. yarn set version berry
  3. yarn add next@canary react react-dom
  4. Create pages folder
  5. Create next.config.js file ( reason ):
module.exports = {
  experimental: {
    swcFileReading: false
  }
}
  1. yarn next
  2. Read log:
ready - started server on 0.0.0.0:3000, url: http://localhost:3000
error - ./.yarn/__virtual__/react-dom-virtual-3cc0bffdcb/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483494)
    at new Promise (<anonymous>)
wait  - compiling...
error - ./.yarn/__virtual__/react-dom-virtual-3cc0bffdcb/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483417)
    at new Promise (<anonymous>)
wait  - compiling...
error - ./.yarn/__virtual__/react-dom-virtual-3cc0bffdcb/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483417)
    at new Promise (<anonymous>)
<w> [webpack.cache.PackFileCacheStrategy] Skipped not serializable cache item 'Compilation/modules|C:\test-nextjs\.yarn\__virtual__\react-dom-virtual-3cc0bffdcb\0\cache\react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip\node_modules\react-dom\cjs\react-dom.development.js': No serializer registered for NodeError        
<w> while serializing webpack/lib/cache/PackFileCacheStrategy.PackContentItems -> webpack/lib/NormalModule -> webpack/lib/ModuleBuildError -> NodeError
@rtritto rtritto added the bug Issue was opened via the bug report template. label Nov 17, 2021
@rtritto rtritto changed the title The "path" argument must be of type string or an instance of Buffer or URL (react-dom) The "path" argument must be of type string or an instance of Buffer or URL (react-dom) Nov 17, 2021
@rtritto
Copy link
Author

rtritto commented Nov 20, 2021

FYI @sokra

@kachkaev
Copy link
Contributor

kachkaev commented Nov 21, 2021

Same here. When I use Next.js v12.0.5-canary.0 or v12.0.5-canary.6, yarn dev crashes for Yarn v3 (Berry) with PnP. When I downgrade to v12.0.4, it works again. Full output of broken yarn dev after I open localhost:3000:

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn  - You have enabled experimental feature(s).
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.

error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483636)
    at new Promise (<anonymous>)
wait  - compiling...
error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483620)
    at new Promise (<anonymous>)
wait  - compiling...
error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483620)
    at new Promise (<anonymous>)
(node:57064) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API
(Use `node --trace-deprecation ...` to show where the warning was created)
wait  - compiling /_error (client and server)...
error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483620)
    at new Promise (<anonymous>)
Error: Qualified path resolution failed - none of those files can be found on the disk.

Source path: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json.js
Not found: /path/to/project/.next/fallback-build-manifest.json.json
Not found: /path/to/project/.next/fallback-build-manifest.json.node

Require stack:
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/load-components.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/utils.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/store.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/index.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/cli/next-dev.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/bin/next
    at Function.external_module_.Module._resolveFilename (/path/to/project/.pnp.cjs:17279:55)
    at Function.mod._resolveFilename (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/webpack/require-hook.js:171:28)
    at Function.external_module_.Module._load (/path/to/project/.pnp.cjs:17078:48)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.loadDefaultErrorComponents (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/load-components.js:22:24)
    at DevServer.getFallbackErrorComponents (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/dev/next-dev-server.js:673:43)
    at async DevServer.renderErrorToResponse (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/next-server.js:1730:40)
    at async pipe.req.req (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/next-server.js:1670:30)
    at async DevServer.pipe (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/next-server.js:1148:25)
error - Error: Qualified path resolution failed - none of those files can be found on the disk.

Source path: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json.js
Not found: /path/to/project/.next/fallback-build-manifest.json.json
Not found: /path/to/project/.next/fallback-build-manifest.json.node

Require stack:
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/load-components.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/utils.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/store.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/index.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/cli/next-dev.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/bin/next

Running rm -rf .next && yarn dev does not help. Running yarn add next@12.0.4 && yarn dev does.

I also tried yarn set version canary && yarn install && yarn dev but this did not fix things for next@canary.

@rtritto
Copy link
Author

rtritto commented Nov 23, 2021

It should depend on webpack changes in #31455.

FYI @shuding @ijjk

@kachkaev
Copy link
Contributor

kachkaev commented Nov 24, 2021

Let’s hope that #31759 works as a fix 🤞

UPD: It did not 😅

@rtritto
Copy link
Author

rtritto commented Nov 25, 2021

To test with next.js >= v12.0.5-canary.10 after resolution of bug #31812.

@rtritto
Copy link
Author

rtritto commented Dec 2, 2021

It still persists with next.js v12.0.5-canary.14.

@kachkaev
Copy link
Contributor

kachkaev commented Dec 2, 2021

Yep, upgrading to Next v12.0.5-canary.14 did not help me in kachkaev/njt#161. I tried setting swcFileReading: false in next.config.jsexperimental as suggested in #31812 (comment). However, this did not help. The error log in yarn dev looks the same as before.

UPD: Next 12.0.6 → no improvement

@rtritto
Copy link
Author

rtritto commented Dec 2, 2021

@kachkaev the swcFileReading: false prevents only this #31812 and it doesn't resolve this issue.

PS: I updated 'To Reproduce' steps.

@balazsorban44 balazsorban44 added area: Yarn PnP / pnpm and removed bug Issue was opened via the bug report template. labels Dec 3, 2021
@aperalta1437
Copy link

Same here. When I use Next.js v12.0.5-canary.0 or v12.0.5-canary.6, yarn dev crashes for Yarn v3 (Berry) with PnP. When I downgrade to v12.0.4, it works again. Full output of broken yarn dev after I open localhost:3000:

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
warn  - You have enabled experimental feature(s).
warn  - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.

error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483636)
    at new Promise (<anonymous>)
wait  - compiling...
error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483620)
    at new Promise (<anonymous>)
wait  - compiling...
error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483620)
    at new Promise (<anonymous>)
(node:57064) [DEP_WEBPACK_MODULE_ISSUER] DeprecationWarning: Module.issuer: Use new ModuleGraph API
(Use `node --trace-deprecation ...` to show where the warning was created)
wait  - compiling /_error (client and server)...
error - ./.yarn/__virtual__/react-dom-virtual-fe01f4b047/0/cache/react-dom-npm-17.0.2-f551215af1-1c1eaa3bca.zip/node_modules/react-dom/cjs/react-dom.development.js
Module build failed: TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string or an instance of Buffer or URL. Received type number (-2147483620)
    at new Promise (<anonymous>)
Error: Qualified path resolution failed - none of those files can be found on the disk.

Source path: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json.js
Not found: /path/to/project/.next/fallback-build-manifest.json.json
Not found: /path/to/project/.next/fallback-build-manifest.json.node

Require stack:
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/load-components.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/utils.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/store.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/index.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/cli/next-dev.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/bin/next
    at Function.external_module_.Module._resolveFilename (/path/to/project/.pnp.cjs:17279:55)
    at Function.mod._resolveFilename (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/webpack/require-hook.js:171:28)
    at Function.external_module_.Module._load (/path/to/project/.pnp.cjs:17078:48)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.loadDefaultErrorComponents (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/load-components.js:22:24)
    at DevServer.getFallbackErrorComponents (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/dev/next-dev-server.js:673:43)
    at async DevServer.renderErrorToResponse (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/next-server.js:1730:40)
    at async pipe.req.req (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/next-server.js:1670:30)
    at async DevServer.pipe (/path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/next-server.js:1148:25)
error - Error: Qualified path resolution failed - none of those files can be found on the disk.

Source path: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json
Not found: /path/to/project/.next/fallback-build-manifest.json.js
Not found: /path/to/project/.next/fallback-build-manifest.json.json
Not found: /path/to/project/.next/fallback-build-manifest.json.node

Require stack:
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/server/load-components.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/utils.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/store.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/build/output/index.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/cli/next-dev.js
- /path/to/project/.yarn/__virtual__/next-virtual-0d318d6535/0/cache/next-npm-12.0.5-canary.6-f394586d9e-f8b75e366e.zip/node_modules/next/dist/bin/next

Running rm -rf .next && yarn dev does not help. Running yarn add next@12.0.4 && yarn dev does.

I also tried yarn set version canary && yarn install && yarn dev but this did not fix things for next@canary.

"yarn add next@12.0.4" fixed it for me. Thank you!

@kaykdm kaykdm mentioned this issue Dec 28, 2021
10 tasks
anulman added a commit to anulman/bigcomputer.xyz that referenced this issue Jan 9, 2022
kodiakhq bot pushed a commit that referenced this issue Jan 11, 2022
x-ref [#31552 ](#31552)
x-ref #32115
x-ref #32546
x-ref #32721

Since this PR #31455 is merged, `enhanced-resolve` dependency's resolved field is changed which caused broken yarn pnp.
I am not sure how this field has been changed or this is intentional or not 
When I install webpack locally, `enhanced-resolve`'s resolved field in lock file is always `registry.yarnpkg.com` not `codeload.github.com`

## Bug

- [x] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Errors have helpful link attached, see `contributing.md`

## Feature

- [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR.
- [ ] Related issues linked using `fixes #number`
- [ ] Integration tests added
- [ ] Documentation added
- [ ] Telemetry added. In case of a feature if it's used or not.
- [ ] Errors have helpful link attached, see `contributing.md`

## Documentation / Examples

- [ ] Make sure the linting passes by running `yarn lint`


Co-authored-by: Tobias Koppers <1365881+sokra@users.noreply.github.com>
Co-authored-by: JJ Kasper <22380829+ijjk@users.noreply.github.com>
@kachkaev
Copy link
Contributor

Looks like this issue got fixed in 12.0.8-canary.21 via #32867 🎉

@rtritto rtritto closed this as completed Jan 11, 2022
@lenzi-erickson
Copy link

lenzi-erickson commented Jan 21, 2022

I still get yarn errors if I update Next past 12.0.4. Any ideas? Everything seems to work great <= 12.0.4. Thanks!

./.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/client/index.js
Error: Failed to read source code from [repo folder]/.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/client/index.js

Caused by:
    No such file or directory (os error 2)

Import trace for requested module:
./.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/client/next.js

./.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/shared/lib/head-manager-context.js
Error: Failed to read source code from [repo folder]/.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/shared/lib/head-manager-context.js

Caused by:
    No such file or directory (os error 2)

Import trace for requested module:
./.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/shared/lib/head.js
./.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/pages/_error.js

./.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/shared/lib/router/router.js
Error: Failed to read source code from [repo folder]/.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/shared/lib/router/router.js

Caused by:
    No such file or directory (os error 2)

Import trace for requested module:
./.yarn/__virtual__/next-virtual-c7e2ecd8b7/0/cache/next-npm-12.0.8-aa55acca00-947f0295aa.zip/node_modules/next/dist/client/router.js


> Build failed because of webpack errors

@kachkaev
Copy link
Contributor

kachkaev commented Jan 21, 2022

@lenzi-erickson try next@canary

Alternatively you can use 12.0.8, but set experimental -> swcFileReading = false in next.config.js

@vercel vercel locked as resolved and limited conversation to collaborators Jan 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants