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

antd-mobile 5.12.7 版本 CSS通配符报错:./pages/index/index.wxss error at token "*" #7

Closed
x011223 opened this issue May 24, 2022 · 3 comments

Comments

@x011223
Copy link

x011223 commented May 24, 2022

开发环境

MacOS - 12.3.1
调试基础库 - 2.17.0

报错信息

image

packages

  "dependencies": {
    "@babel/runtime": "^7.7.7",
    "@tarojs/cli": "3.4.6",
    "@tarojs/components": "3.4.6",
    "@tarojs/plugin-framework-react": "3.4.6",
    "@tarojs/react": "3.4.6",
    "@tarojs/runtime": "3.4.6",
    "@tarojs/taro": "3.4.6",
    "antd-mobile": "^5.12.6",
    "react": "^17.0.2",
    "react-dom": "^17.0.2",
    "taro-hooks": "latest"
  },
@x011223
Copy link
Author

x011223 commented May 24, 2022

这个可能需要用babel plugin去处理了。

@Chen-jj
Copy link
Contributor

Chen-jj commented May 24, 2022

Taro 有用一个 postcss 插件去 remove 带有 * 的样式,可以调试看看有没有生效 https://github.com/NervJS/taro/blob/5e57252a81409389b85b8786db5d3d9d92246161/packages/postcss-html-transform/src/index.ts#L12-L13

@x011223
Copy link
Author

x011223 commented May 24, 2022

Taro 有用一个 postcss 插件去 remove 带有 * 的样式,可以调试看看有没有生效 https://github.com/NervJS/taro/blob/5e57252a81409389b85b8786db5d3d9d92246161/packages/postcss-html-transform/src/index.ts#L12-L13

感谢,postcss-html-transform 可以处理这个报错,但是 scheduler 这个库 又报错了,应该是 antd-mobile 引用了这个, 问题比较多,可能会放弃。

@x011223 x011223 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants