question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`@unocss/cli` warn about duplication of preset

See original GitHub issue
image

To reproduce, install @unocss/cli, create uno.config.js and add any preset then run the CLI. Warning message is always appeared in screen.

After some digging, I think loader.load() doesn’t work correctly. It’s duplicate entries of presets array instead of “merge” or something and that cause the problem.

https://github.com/unocss/unocss/blob/76b883f3d412b61be85f35b08ebc5f616abef818/packages/config/src/index.ts#L57

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
avxitcommented, Oct 8, 2022

Can you provide a mimimum reproduction ?

Here it is: https://github.com/avxit/unocss-cli-bug

0reactions
sudongyuercommented, Oct 9, 2022

At packages/cli/src/index.ts

image

Read more comments on GitHub >

github_iconTop Results From Across the Web

unocss/unocss: The instant on-demand atomic CSS engine.
Fully customizable - no core utilities, all functionalities are provided via presets. No parsing, no AST, no scanning, it's INSTANT (5x faster than...
Read more >
@unocss/preset-attributify - npm
Start using @unocss/preset-attributify in your project by running `npm ... grouped into text="sm white" without duplicating the same prefix.
Read more >
@unocss/preset-uno: Versions | Openbase
Full version history for @unocss/preset-uno including change logs. ... Support unocss config for cli - by @sudongyuer and @antfu in ...
Read more >
Central Repository: org/webjars/npm
... algolia__autocomplete-preset-algolia/ ... babel-plugin-transform-es2015-duplicate-keys/ ... github-com-cgross-angular-notify/ ...
Read more >
Brackets Extension Registry
This theme is based on the default look of Notepad++, very helpful for developers who ... Keywords: pastebin clipboard notify quick snippet ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found