Skip to content

Module parse failed: Unexpected character '@' on the first run of the project #11481

Open
@wayjourney

Description

@wayjourney

Describe the Bug

I'm using pnpx create-payload-app@latest -t website to create a project.

After executing pnpm dev and compiling, the console finally shows error :

 ⨯ ./node_modules/.pnpm/@[email protected]_@[email protected][email protected][email protected]_react-dom@19_b07fe91b463463bfc1ae4191154ddcf2/node_modules/@payloadcms/ui/dist/icons/Copy/index.scss

Module parse failed: Unexpected character '@' (1:0)
> @import '../../scss/styles';
| 
| @layer payload-default {

Link to the code that reproduces this issue

pnpx create-payload-app@latest -t website

Reproduction Steps

pnpx create-payload-app@latest -t website

pnpm dev

Which area(s) are affected? (Select all that apply)

Not sure

Environment Info

Payload: latest
OS: Mac mini Apple M2 Pro
Node Version: v22.11.0
Pnpm Version: 10.3.0

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions