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

Website Template - Webpack Cache Error (No Serializer registered for ConcatSource) #5313

Open
final-developer opened this issue Mar 13, 2024 · 2 comments
Labels
status: needs-triage Possible bug which hasn't been reproduced yet

Comments

@final-developer
Copy link

Link to reproduction

No response

Describe the Bug

When cloning the github repo with the website template (or installing via npx) to local, webpack caching does not work.
Following errors occure and make development painful due to compiling durations of 30 seconds after each change:

<w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: No serializer registered for ConcatSource
<w> while serializing webpack/lib/util/registerExternalSerializer.webpack-sources/ConcatSource -> Array { 2 items } -> ConcatSource

To Reproduce

Clone the website template repo: https://github.com/payloadcms/payload/tree/main/templates/website via CLI to local.
Run it with yarn dev / npm run dev.

Payload Version

2.0.0

Adapters and Plugins

bundler-webpack

@final-developer final-developer added the status: needs-triage Possible bug which hasn't been reproduced yet label Mar 13, 2024
@cgarempire
Copy link

Same for me. All i did was clone the example repo, seed the database, and i get this error while trying to delete the seeded demo users

@unknownterritory
Copy link

The same happens when trying to run docker compose up from the website template installation. It gets stuck on a loop after throwing these two lines:

payload-1  | <w> [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: No serializer registered for ConcatSource
payload-1  | <w> while serializing webpack/lib/util/registerExternalSerializer.webpack-sources/ConcatSource -> Array { 2 items } -> ConcatSource

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: needs-triage Possible bug which hasn't been reproduced yet
Projects
None yet
Development

No branches or pull requests

3 participants