question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot read property 'dots' of undefined

See original GitHub issue

Since 2 days ago, I’m getting an error when using the Spinner in a very simple way <Spinner type="dots" />

This might be a result of a new release of the cli-spinners 2 days ago - see https://www.npmjs.com/package/cli-spinners

It seems that it should work now without the default. so if I’m changing const spinner = cli_spinners_1.default[type]; to const spinner = cli_spinners_1[type]; it works

  ERROR  Cannot read property 'dots' of undefined

 10: const Spinner = ({ type = 'dots' }) => {
 11:     const [frame, setFrame] = react_1.useState(0);
 12:     console.log('cli_spinners_1', cli_spinners_1)
 13:     const spinner = cli_spinners_1.default[type];
 14:     // const spinner = cli_spinners_1[type];
 15:     react_1.useEffect(() => {
 16:         const timer = setInterval(() => {

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:9
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
dankrajnakcommented, Oct 3, 2021

Made a PR: https://github.com/vadimdemedes/ink-spinner/pull/13

I would also suggest removing yarn.lock from .gitignore so this kind of thing doesn’t happen in the future.

0reactions
alcancecommented, Oct 7, 2021

Glad i found this issue. Just started usIng Blitz and haven’t found a clear workaround for this. Already tried installing canary version but keep getting same error and not sure how to overcome this blocking issue. Can anyone point me to a solution? Thanks!

"blitz": "0.39.0",

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot read property 'dots' of undefined · Issue #966 - GitHub
Having strange issue in Chrome v.39.0.2171.95 m include jQuery include jsTree include style initializing as .
Read more >
ERROR Cannot read properties of undefined (reading 'dots')
I don't think the error is from that part of the code since your not trying to read the dots properties. My guess...
Read more >
Cannot read property 'top' of undefined" on Easy Dots Scroll ...
I'm using the Easy Dots Scroll library created by a developer that I downloaded from github on a website project, the three scroll...
Read more >
Uncaught TypeError: Cannot read property of 'next' 'prev'
Hey guys: I have already finished the Flipboard course, and am able to move on to the next excercise, however the dots never...
Read more >
Cannot read property 'name' of undefined, at Array.forEach
TypeError : Cannot read property 'name' of undefined, at Array.forEach. When I press the button to display the task pane, I am seeing...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found