ant-design / ant-design-mobile

Essential UI blocks for building mobile web apps.
https://mobile.ant.design
MIT License
11.62k stars 2.39k forks source link

an error occurred when I start a ant mobile project. #6544

Open lihong1232 opened 7 months ago

lihong1232 commented 7 months ago

Version of antd-mobile

5.34.0

Operating system and its version

Others

Browser and its version

No response

Sandbox to reproduce

No response

What happened?

Server Error SyntaxError: Unexpected token ':'

This error happened while generating the page. Any console logs will be displayed in the terminal window. Call Stack

file:///C:/work/myfirstnext/next-create/node_modules/antd-mobile/cjs/global/global.css (1) ### Relevant log output _No response_
thezetrax commented 5 months ago

encountering the same issue, not sure what is missing from the project. I added a global.css to the root of the project but nothing is is fixed, Is Antd expecting to have a global.css file in the root of the project?

image