YunYouJun / valaxy

🌌 Next Generation Static Blog Framework (Beta) 下一代静态博客框架(支持页面/配置热重载)
https://valaxy.site
MIT License
739 stars 89 forks source link

部分包已过时,build出现错误 #463

Closed atoposyz closed 1 month ago

atoposyz commented 1 month ago

Describe the bug

在build时出现错误,显示color.red已过时qaq

Deprecation Warning: color.red() is deprecated. Suggestion:

color.channel($color, "red", $space: rgb)

More info: https://sass-lang.com/d/color-functions

   ╷
57 │     "c-primary-rgb": #{color.red($c-primary), color.green($c-primary), color.blue($c-primary)},
   │                        ^^^^^^^^^^^^^^^^^^^^^
   ╵
    node_modules\valaxy\client\styles\palette.scss 57:24  @use
    node_modules\valaxy\client\styles\css-vars.scss 8:1   root stylesheet

以及大量的warning

Deprecation Warning: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.

More info: https://sass-lang.com/d/legacy-js-api

和一个可能与上面的过时有关的错误

 ERROR  [vite-ssg] An internal error occurred.                                                                                                                                                                    23:46:54  

node_modules/valaxy-theme-yun/layouts/collections.vue?vue&type=script&setup=true&lang.ts (9:9): "useCollections" is not exported by "node_modules/valaxy/client/index.ts", imported by "node_modules/valaxy-theme-yun/layouts/collections.vue?vue&type=script&setup=true&lang.ts".
file: D:/atoposyz.github.io/node_modules/valaxy-theme-yun/layouts/collections.vue?vue&type=script&setup=true&lang.ts:9:9

7: }
8:
9: import { useCollections } from 'valaxy'

出现的问题基本和[#456 ]一样,但是我好像解决不了,求助一下qwq

Reproduction

none

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz
    Memory: 4.37 GB / 15.80 GB
  Binaries:
    Node: 20.15.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.8.2 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.12.1 - D:\atoposyz.github.io\node_modules\.bin\pnpm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.66)
    Internet Explorer: 11.0.22621.3527

Used Package Manager

npm

Validations

atoposyz commented 1 month ago

valaxy版本:0.20.0-beta.5

YunYouJun commented 1 month ago

这个问题应该已经修复了。是 sass 新的 api 更新。beta 版本等稳定后会发布正式版。

atoposyz commented 1 month ago

重新从头装了一遍,解决了qwq