docz-theme-extended icon indicating copy to clipboard operation
docz-theme-extended copied to clipboard

Console warning for initialColorMode

Open RyanPWalker opened this issue 4 years ago • 3 comments

Running docz locally, there is always this warning in the console: The 'initialColorMode' value should be a unique name and cannot reference a key in 'theme.colors.modes'. It logs again on every page. I think the issue might be this line.

Not urgent, just gets in the way of real console errors.

RyanPWalker avatar Jul 28 '20 22:07 RyanPWalker

Done in the last release.

nejcm avatar Jul 29 '20 19:07 nejcm

Closed the issue a bit too soon :) . So removing the option makes no difference because it is set also in the docz base theme. Renaming the option to something else causes an error when building the theme.

I will keep the issue open until the solution is found but currently a bit short on time to investigate it further.

nejcm avatar Jul 29 '20 20:07 nejcm

It is a year later, any solution as of yet?

L-van-der-merwe avatar May 08 '21 08:05 L-van-der-merwe