gpt4 book ai didi

css-animations - 尝试导入过渡时,Svelte with snowpack 给出 "Not Implemented: Animation"

转载 作者:行者123 更新时间:2023-12-04 13:10:29 26 4
gpt4 key购买 nike

通常,我可以导入一个 flip或其他像这样 slim 的动画:

import { flip } from "svelte/animate";
但是,我不确定为什么我在使用 svelte 的雪堆中出现以下错误:
Build Error: @snowpack/plugin-svelte
Error: Not implemented: Animation

Source
/Users/duane/Braid/ribbon/client/src/Posts/PostsPage.svelte
Error: Not implemented: Animation
at /Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27126:28
at Array.forEach (<anonymous>)
at new InlineComponent$1 (/Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27087:26)
at /Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27358:23
at Array.map (<anonymous>)
at map_children (/Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27353:22)
at new IfBlock$1 (/Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27063:26)
at /Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27358:23
at Array.map (<anonymous>)
at map_children (/Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27353:22)
at new Fragment (/Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27410:26)
at new Component (/Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:27547:26)
at Object.compile (/Users/duane/Braid/ribbon/node_modules/svelte/compiler.js:28753:24)
at Object.load (/Users/duane/Braid/ribbon/node_modules/@snowpack/plugin-svelte/plugin.js:120:31)
at async runPipelineLoadStep (/Users/duane/Braid/ribbon/node_modules/snowpack/lib/index.js:74471:28)
at async Object.buildFile (/Users/duane/Braid/ribbon/node_modules/snowpack/lib/index.js:74638:24)
我错过了什么吗?

最佳答案

事实证明,这与积雪无关。
相反,当您尝试在组件(例如 <MySpecialButton /> )上添加“animate:flip”或“transition:slide”(例如)时,会出现“未实现:动画”错误。 animate:transition:属性只能用于 DOM 元素,例如 <div /> , 等等。

关于css-animations - 尝试导入过渡时,Svelte with snowpack 给出 "Not Implemented: Animation",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66056367/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com