Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
inrhor opened this issue Apr 18, 2024 · 3 comments

Comments

@inrhor
Copy link

inrhor commented Apr 18, 2024

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

Copy link

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.

@saadeghi
Copy link
Owner

saadeghi commented Apr 25, 2024

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.

@inrhor
Copy link
Author

inrhor commented Apr 26, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants