Skip to content
This repository has been archived by the owner on Nov 19, 2021. It is now read-only.

techdocs-cli serve --no-docker loads a blank page #183

Closed
kenny-chow-my opened this issue Oct 19, 2021 · 3 comments
Closed

techdocs-cli serve --no-docker loads a blank page #183

kenny-chow-my opened this issue Oct 19, 2021 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@kenny-chow-my
Copy link

Running techdocs-cli serve --no-docker serves up a blank page with error in the devtools console (See below)

Expected Behavior

TechDocs preview should load the content and not show a white blank page.

Current Behavior

Blank Page with the following error in the devtools console

react-dom.production.min.js:209 
        
       Error: No implementation available for apiRef{plugin.search.queryservice}
    at u (index.esm.js:51)
    at B (index-9c0d67e6.esm.js:154)
    at Yi (react-dom.production.min.js:153)
    at wo (react-dom.production.min.js:261)
    at pu (react-dom.production.min.js:246)
    at fu (react-dom.production.min.js:246)
    at ru (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
    at Bl (react-dom.production.min.js:122)
to @ react-dom.production.min.js:209
n.payload @ react-dom.production.min.js:227
di @ react-dom.production.min.js:129
Ua @ react-dom.production.min.js:179
wo @ react-dom.production.min.js:263
pu @ react-dom.production.min.js:246
fu @ react-dom.production.min.js:246
ru @ react-dom.production.min.js:239
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:19
Bl @ react-dom.production.min.js:122
ql @ react-dom.production.min.js:123
$l @ react-dom.production.min.js:122
wu @ react-dom.production.min.js:257
t.unstable_runWithPriority @ scheduler.production.min.js:19
Bl @ react-dom.production.min.js:122
bu @ react-dom.production.min.js:257
(anonymous) @ react-dom.production.min.js:256
F @ scheduler.production.min.js:17
_.port1.onmessage @ scheduler.production.min.js:14
react-dom.production.min.js:209 
        
       Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Ou (react-dom.production.min.js:275)
    at react-dom.production.min.js:148
    at Aa (react-dom.production.min.js:182)
    at Ua (react-dom.production.min.js:181)
    at wo (react-dom.production.min.js:263)
    at pu (react-dom.production.min.js:246)
    at fu (react-dom.production.min.js:246)
    at ru (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:19)
to @ react-dom.production.min.js:209
n.callback @ react-dom.production.min.js:226
pi @ react-dom.production.min.js:131
ao @ react-dom.production.min.js:212
vu @ react-dom.production.min.js:255
t.unstable_runWithPriority @ scheduler.production.min.js:19
Bl @ react-dom.production.min.js:122
gu @ react-dom.production.min.js:248
ru @ react-dom.production.min.js:239
(anonymous) @ react-dom.production.min.js:123
t.unstable_runWithPriority @ scheduler.production.min.js:19
Bl @ react-dom.production.min.js:122
ql @ react-dom.production.min.js:123
$l @ react-dom.production.min.js:122
wu @ react-dom.production.min.js:257
t.unstable_runWithPriority @ scheduler.production.min.js:19
Bl @ react-dom.production.min.js:122
bu @ react-dom.production.min.js:257
(anonymous) @ react-dom.production.min.js:256
F @ scheduler.production.min.js:17
_.port1.onmessage @ scheduler.production.min.js:14
scheduler.production.min.js:14 
        
       Uncaught Error: Minified React error #130; visit https://reactjs.org/docs/error-decoder.html?invariant=130&args[]=undefined&args[]= for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
    at Ou (react-dom.production.min.js:275)
    at react-dom.production.min.js:148
    at Aa (react-dom.production.min.js:182)
    at Ua (react-dom.production.min.js:181)
    at wo (react-dom.production.min.js:263)
    at pu (react-dom.production.min.js:246)
    at fu (react-dom.production.min.js:246)
    at ru (react-dom.production.min.js:239)
    at react-dom.production.min.js:123
    at t.unstable_runWithPriority (scheduler.production.min.js:19)

Steps to Reproduce

Either install latest version of techdocs-cli @ version 0.8.3 or run npx @techdocs/cli serve --no-docker inside a techdocs repo

Context

When performing local preview of techdocs content, we prefer to run it through the techdocs-cli preview without the performance impact of running docker.

When running the preview with docker, the preview works fine.

This issue seems similar to a past issue here: backstage/backstage#2135

Your Environment

MacOS 10.15.7
Node v14.17.0
npm v6.14.13
techdocs-cli v0.8.3

@kenny-chow-my kenny-chow-my added the bug Something isn't working label Oct 19, 2021
@kenny-chow-my kenny-chow-my changed the title TechDocs CLI (No Docker) loads a blank page techdocs-cli serve --no-docker loads a blank page Oct 19, 2021
@JoshuaBellew
Copy link

I get this same issue and same console warnings when running techdocs-cli serve using docker on the latest version 0.8.3. When running 0.8.2 the docker preview works absolutely fine.

@camilaibs camilaibs self-assigned this Oct 21, 2021
@camilaibs
Copy link
Contributor

Starting to look

@camilaibs
Copy link
Contributor

Fixed in the version 0.8.4: #185

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants