N
N
NarkoMan012021-04-18 15:32:54
React
NarkoMan01, 2021-04-18 15:32:54

ReferenceError: process is not defined?

good afternoon!
I added react-styleguidist to my react project. When I run npm run styleguide, I get an error:
ReferenceError: process is not defined
607c26f265ac2100053000.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2021-04-18
@Casufi

What is WebSocket doing in your visual component?
You need to not just install, but read the doc
https://react-styleguidist.js.org/docs/getting-started/
Your Styleguidist should be configured to see only visual components that do not contain the application's business logic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question