bug: The theme color is incorrect in yarn serve mode after Docusaurus is built
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.
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.
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.
On your link, when I run
yarn build && yarn serveI 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