Skip to content

求助下 #270

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

Open
zicang opened this issue Apr 15, 2025 · 15 comments
Open

求助下 #270

zicang opened this issue Apr 15, 2025 · 15 comments

Comments

@zicang
Copy link

zicang commented Apr 15, 2025

我应该怎么才能引入element呢

@winixt
Copy link
Collaborator

winixt commented Apr 16, 2025

直接用呀,有什么问题吗

@zicang
Copy link
Author

zicang commented Apr 19, 2025

直接用呀,有什么问题吗

说错了是opentiny只要引用vite打包就会报错
[10000:000001117DB42CC0] 257453 ms: Mark-Compact (reduce) 2038.2 (2082.9) -> 2037.9 (2083.7) MB, 6412.71 / 0.00 ms (average mu = 0.195, current mu = 0.021) allocation failure; scavenge might not succeed
[10000:000001117DB42CC0] 264219 ms: Mark-Compact (reduce) 2038.9 (2083.7) -> 2038.5 (2084.4) MB, 6722.59 / 0.00 ms (average mu = 0.107, current mu = 0.006) allocation failure; scavenge might not succeed

@winixt
Copy link
Collaborator

winixt commented Apr 21, 2025

给 nodejs 分配多一点内存

@zicang
Copy link
Author

zicang commented Apr 28, 2025

直接用呀,有什么问题吗

tailwindcss 该怎么引呢有@fesjs/plugin-windicss类似的插件吗

@winixt
Copy link
Collaborator

winixt commented Apr 29, 2025

直接用呀,有什么问题吗

tailwindcss 该怎么引呢有@fesjs/plugin-windicss类似的插件吗

哪个版本的 tailwindcss

@zicang
Copy link
Author

zicang commented Apr 29, 2025

直接用呀,有什么问题吗

tailwindcss 该怎么引呢有@fesjs/plugin-windicss类似的插件吗

哪个版本的 tailwindcss

4.0

@winixt
Copy link
Collaborator

winixt commented Apr 29, 2025

直接用呀,有什么问题吗

tailwindcss 该怎么引呢有@fesjs/plugin-windicss类似的插件吗

哪个版本的 tailwindcss

4.0

Image

@winixt
Copy link
Collaborator

winixt commented Apr 29, 2025

https://fesjs.mumblefe.cn/reference/config/#viteoption

这里加 vite 配置就可以

@zicang
Copy link
Author

zicang commented Apr 30, 2025

https://fesjs.mumblefe.cn/reference/config/#viteoption

这里加 vite 配置就可以

报错10:27:41 [vite] error while updating dependencies: 10:27:42
Error: Build failed with 2 errors:
node_modules/@tailwindcss/node/node_modules/lightningcss/node/index.js:17:27: ERROR: Could not resolve "../pkg"
node_modules/@tailwindcss/oxide/index.js:160:23: ERROR: No loader is configured for ".node" files: node_modules/@tailwindcss/oxide-darwin-x64/tailwindcss-oxide.darwin-x64.node

能给我个完整的示例吗

@zicang
Copy link
Author

zicang commented Apr 30, 2025

3、4 的都可以

@winixt
Copy link
Collaborator

winixt commented Apr 30, 2025

可以用tailwind3 吗?看了下 tailwind4 只有 esm,目前 fes.js 还不支持

@zicang
Copy link
Author

zicang commented May 6, 2025

可以用tailwind3 吗?看了下 tailwind4 只有 esm,目前 fes.js 还不支持

可以的,麻烦给我下示例

@winixt
Copy link
Collaborator

winixt commented May 6, 2025

  1. 使用这个方式:https://v3.tailwindcss.com/docs/installation/using-postcss
  2. postcss 的配置用数组的方式
  3. 修改 tailwind.config.js 的配置为:

Image

@zicang
Copy link
Author

zicang commented May 6, 2025

  1. 使用这个方式:https://v3.tailwindcss.com/docs/installation/using-postcss
  2. postcss 的配置用数组的方式
  3. 修改 tailwind.config.js 的配置为:

Image

ERROR 10:19:12 [vite] Pre-transform error: postcssConfig.plugins.slice is not a function (x2) 10:19:12这个报错

@winixt
Copy link
Collaborator

winixt commented May 6, 2025

postcss 的配置用数组的方式,类似 require('tailwindcss')()

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