Simplify your stack and build anything. Or everything.
Build tomorrow’s web with a modern solution you truly own.
Code-based nature means you can build on top of it to power anything.
It’s time to take back your content infrastructure.

"Module build failed" with swc

default discord avatar
sejden2 years ago
2

Hi, recently trying to update to v1.6, but I'm getting an error when trying to make a production build. I got to pinpoint the cause down to this commit: (introduced in

1.6.18

)

https://github.com/payloadcms/payload/commit/ef826c88ec40878bb36e960c2df2c68ec3c54ef6

If I comment that code out, compilation works again.



Any idea why it makes it fail to compile?


Here is the error I get:

  • default discord avatar
    jessrynkar2 years ago

    Hey

    @668622626041757706

    - I haven't seen this error before, are you still experiencing this on version 1.7.1?

  • default discord avatar
    sejden2 years ago

    Hi, thanks for the follow up. Unfortunately, yes, it's still happening with version 1.7.1. And still, when I remove the

    ignore

    from the swc options, build works again



    It seems to be related to Tailwindcss, as when I remove the @tailwind directives, build works again



    Seems to be working now with current version 🍪

Star on GitHub

Star

Chat on Discord

Discord

online

Can't find what you're looking for?

Get dedicated engineering support directly from the Payload team.