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.

SCSS import error with webpack bundler

default discord avatar
tyteen4a03last year

Is anybody else getting this error when using import in scss?



@import "~rfs/scss";
^

SyntaxError: Invalid or unexpected token


Issue was solved - you need to remove

PAYLOAD_CONFIG_PATH

from your

package.json

, especially if you are coming from v1.



More info:

https://github.com/payloadcms/payload/issues/3120
    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.