SCSS import error with webpack bundler

default discord avatar
tyteen4a03
4 weeks ago

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
    Open the post
    Continue the discussion in Discord
    Like what we're doing?
    Star us on GitHub!

    Star

    Connect with the Payload Community on Discord

    Discord

    online

    Can't find what you're looking for?

    Get help straight from the Payload team with an Enterprise License.