Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

在egg.js ssr项目编译失败,无法识别global.css文件的 :root 伪类,请问如何解决? #6439

Closed
ghost opened this issue Nov 18, 2023 · 1 comment
Labels
need reproduce We cannot reproduce your problem

Comments

@ghost
Copy link

ghost commented Nov 18, 2023

Version of antd-mobile

5.33.0

Description

server render bundle error, try client render, the server render error D:\项目\node_modules\antd-mobile\cjs\global\global.css:1
:root {
^

SyntaxError: Unexpected token ':'
at compileFunction ()
at Object.compileFunction (node:vm:360:18)
at wrapSafe (node:internal/modules/cjs/loader:1124:15)
at Module._compile (node:internal/modules/cjs/loader:1160:27)
at Module._extensions..js (node:internal/modules/cjs/loader:1250:10)
at Object.require.extensions. [as .js] (D:\项目\node_modules\ts-node\src\index.ts:431:14)
at Module.load (node:internal/modules/cjs/loader:1074:32)
at Function.Module._load (node:internal/modules/cjs/loader:909:12)
at Module.require (node:internal/modules/cjs/loader:1098:19)
at require (node:internal/modules/cjs/helpers:108:18)

@ghost ghost changed the title 在egg.js服务端项目编译失败 在egg.js ssr项目编译失败,无法识别global.css文件的 :root Nov 18, 2023
@ghost ghost changed the title 在egg.js ssr项目编译失败,无法识别global.css文件的 :root 在egg.js ssr项目编译失败,无法识别global.css文件的 :root 伪类,请问如何解决? Nov 18, 2023
@1587315093 1587315093 added the need reproduce We cannot reproduce your problem label Nov 21, 2023
Copy link
Contributor

Hi, fangpeijie.

Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.

我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandboxstackblitz 创建一个实例。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need reproduce We cannot reproduce your problem
Projects
None yet
Development

No branches or pull requests

1 participant