Redocly/create-openapi-repo

Startup Errors

dldereklee opened this issue · 2 comments

Running npx create-openapi-repo and then 'npm start', I get the following errors in console and nothing appears in the browser.

Do I need to add any additional files before I run 'npm start' for this to work?

react-dom.production.min.js:196 Error: An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#3 for more information.
    at T (polished.es.js:1810)
    at j (polished.es.js:1988)
    at Y (polished.es.js:2278)
    at polished.es.js:2127
    at linesColor (theme.ts:118)
    at Object.get [as linesColor] (theme.ts:226)
    at JSON.stringify (<anonymous>)
    at new e (theme.ts:241)
    at t.render (RedocStandalone.tsx:42)
    at Za (react-dom.production.min.js:181)
gs @ react-dom.production.min.js:196
n.callback @ react-dom.production.min.js:210
Oi @ react-dom.production.min.js:131
Ei @ react-dom.production.min.js:131
Ll @ react-dom.production.min.js:252
t.unstable_runWithPriority @ scheduler.production.min.js:18
Go @ react-dom.production.min.js:120
Nl @ react-dom.production.min.js:244
xl @ react-dom.production.min.js:223
gl @ react-dom.production.min.js:214
oc @ react-dom.production.min.js:279
(anonymous) @ react-dom.production.min.js:282
El @ react-dom.production.min.js:224
uc @ react-dom.production.min.js:282
render @ react-dom.production.min.js:286
cu @ standalone.tsx:49
(anonymous) @ (index):33
construct.js:30 Uncaught Error: An error occurred. See https://github.com/styled-components/polished/blob/master/src/internalHelpers/errors.md#3 for more information.
    at T (polished.es.js:1810)
    at j (polished.es.js:1988)
    at Y (polished.es.js:2278)
    at polished.es.js:2127
    at linesColor (theme.ts:118)
    at Object.get [as linesColor] (theme.ts:226)
    at JSON.stringify (<anonymous>)
    at new e (theme.ts:241)
    at t.render (RedocStandalone.tsx:42)

What version of create-openapi-repo do you have? Note that npx may use previously installed global version of the package.

Oh, I just found it is the issue in the default template 🙈

Update your .redocly.yaml and update theme from:

  theme:
    colors:
      primary: "#32329f"

to

  theme:
    colors:
      primary:
        main: "#32329f"