๐ An animation preset for UnoCSS, which adapts the tailwindcss-animate plugin
MIT License ยฉ 2023-present Aelita (Tony Jiang)
๐ An animation preset for UnoCSS, which adapts the tailwindcss-animate plugin
Home Page: https://unocss-preset-animations.aelita.me/
License: MIT License
๐ An animation preset for UnoCSS, which adapts the tailwindcss-animate plugin
MIT License ยฉ 2023-present Aelita (Tony Jiang)
Hi there
Trying to work with the preset for using shadcn-vue together with unocss, but can't seem to figure what this error is related to.
When my config looks like this:
import {
defineConfig,
presetIcons,
presetUno,
transformerDirectives,
} from "unocss";
import presetAnimations from "unocss-preset-animations";
import { presetShadcn } from "unocss-preset-shadcn";
export default defineConfig({
presets: [
presetUno(),
presetIcons({
prefix: "i-",
extraProperties: {
display: "inline-block",
"vertical-align": "middle",
},
}),
presetShadcn({
color: "slate",
}),
presetAnimations(),
],
transformers: [transformerDirectives()],
I get the following error on npm run dev:
/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/unocss-preset-animations/dist/index.cjs:188
const presetAnimations = core.definePreset(() => ({
^
TypeError: core.definePreset is not a function
at /Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/unocss-preset-animations/dist/index.cjs:188:31
at evalModule (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/jiti/dist/jiti.js:1:256443)
at jiti (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/jiti/dist/jiti.js:1:254371)
at /Users/frederikkirkeskov/Sites/hrzn-frontend/uno.config.js:11:54
at evalModule (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/jiti/dist/jiti.js:1:256443)
at jiti (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/jiti/dist/jiti.js:1:254371)
at loadConfigFile (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/unconfig/dist/index.cjs:162:13)
at async Object.load (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/unconfig/dist/index.cjs:85:24)
at async Object.loadConfig (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/@unocss/config/dist/index.cjs:50:18)
at async Object.reloadConfig (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/@unocss/vite/dist/index.cjs:108:20)
at async FSWatcher.<anonymous> (/Users/frederikkirkeskov/Sites/hrzn-frontend/node_modules/@unocss/vite/dist/index.cjs:1052:9)
Node.js v20.11.0
I'm not using TypeScript, unfortunately, maybe this might be related.
Running [email protected]
, but seems like it's related to the imports in the dist/index.cjs of this package..
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.