Skip to content
This repository was archived by the owner on Nov 2, 2023. It is now read-only.
This repository was archived by the owner on Nov 2, 2023. It is now read-only.

Error when upgrading to Next.js 13's new app directory #23

@adiba

Description

@adiba

(Note: I created this issue here because I believe it is future relevant.)

After migrating to the new app folder structure (https://beta.nextjs.org/docs), I got an error when importing payload.

Error: Module not found: Can't resolve 'uglify-js'

The error seems to be a common issue in webpack 5:
https://stackoverflow.com/questions/71013802/webpack-5-error-cant-resolve-uglify-js-swc-core-esbuild
However, I am too unfamiliar with webpack and next to be able to apply this to the next config.

I would appreciate any further pointers!

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