Cannot read property 'dots' of undefined
See original GitHub issueSince 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:
- Created 2 years ago
- Reactions:9
- Comments:5 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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.
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",