daisyui icon indicating copy to clipboard operation
daisyui copied to clipboard

bug: The theme color is incorrect in yarn serve mode after Docusaurus is built

Open inrhor opened this issue 1 year ago β€’ 3 comments

What version of daisyUI are you using?

latest

Which browsers are you seeing the problem on?

Edge

Reproduction URL

https://stackblitz.com/edit/github-snyqqa?file=src/pages/index.js

Describe your issue

Both the new and old versions of Docusaurus and DaisyUI encounter this issue. Reproducing steps are as follows:

The Windows system theme is set to dark mode. After running yarn build and yarn serve, Docusaurus displays light colors, while DaisyUI displays dark colors. The displayed effects differ between development mode using yarn start and service mode using yarn serve.

1

inrhor avatar Apr 18 '24 17:04 inrhor

Thank you @inrhor for reporting issues. It helps daisyUI a lot πŸ’š
I'll be working on issues one by one. I will help with this one as soon as a I find a solution.
In the meantime providing more details and reproduction links would be helpful.

github-actions[bot] avatar Apr 18 '24 17:04 github-actions[bot]

On your link, when I run yarn build && yarn serve I get this error

SyntaxError: Unexpected identifier '𝐬𝐛_𝐞𝐱𝐩𝐨𝐬𝐞'
[ERROR] Unable to build website for locale en.
[ERROR] Error: Failed to compile with errors.
    at eval (file:///home/projects/github-snyqqa/node_modules/@docusaurus/core/lib/webpack/utils.js:207:24)
    at eval (file:///home/projects/github-snyqqa/node_modules/webpack/lib/MultiCompiler.js:554:14)
    at processQueueWorker (file:///home/projects/github-snyqqa/node_modules/webpack/lib/MultiCompiler.js:491:6)
    at _0x3b802d (https://githubsnyqqa-0xfm-v1vb2tl8.w-credentialless-staticblitz.com/blitz.41fbae16.js:352:155078)
    at https://githubsnyqqa-0xfm-v1vb2tl8.w-credentialless-staticblitz.com/blitz.41fbae16.js:352:154835
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

saadeghi avatar Apr 25 '24 09:04 saadeghi

On your link, when I run yarn build && yarn serve I get this errorεœ¨ζ‚¨ηš„ι“ΎζŽ₯δΈŠοΌŒε½“ζˆ‘θΏθ‘Œ yarn build && yarn serve ζ—ΆοΌŒζˆ‘ζ”Άεˆ°ζ­€ι”™θ――

SyntaxError: Unexpected identifier '𝐬𝐛_𝐞𝐱𝐩𝐨𝐬𝐞'
[ERROR] Unable to build website for locale en.
[ERROR] Error: Failed to compile with errors.
    at eval (file:///home/projects/github-snyqqa/node_modules/@docusaurus/core/lib/webpack/utils.js:207:24)
    at eval (file:///home/projects/github-snyqqa/node_modules/webpack/lib/MultiCompiler.js:554:14)
    at processQueueWorker (file:///home/projects/github-snyqqa/node_modules/webpack/lib/MultiCompiler.js:491:6)
    at _0x3b802d (https://githubsnyqqa-0xfm-v1vb2tl8.w-credentialless-staticblitz.com/blitz.41fbae16.js:352:155078)
    at https://githubsnyqqa-0xfm-v1vb2tl8.w-credentialless-staticblitz.com/blitz.41fbae16.js:352:154835
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

You need to download to the local execution, not to use it on the link

inrhor avatar Apr 26 '24 08:04 inrhor