You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got the following message from running astro info:
astro : The term 'astro' is not
recognized as the name of a cmdlet,
function, script file, or operable
program. Check the spelling of the
name, or if a path was included,
verify that the path is correct and
try again.
At line:1 char:1
+ astro info
+ ~~~~~
+ CategoryInfo : Objec
tNotFound: (astro:String) [], C
ommandNotFoundException
+ FullyQualifiedErrorId : Comma
ndNotFoundException
If this issue only occurs in one browser, which browser is a problem?
firefox, chrome
Describe the Bug
I am using the React package called 'React CountUp".
It works fine in development mode, but on production mode, it crashes the entire app.
Astro Info
If this issue only occurs in one browser, which browser is a problem?
firefox, chrome
Describe the Bug
I am using the React package called 'React CountUp".
It works fine in development mode, but on production mode, it crashes the entire app.
Here is where the library is used:
On production mode, the following error is thrown
"Runtime.UnhandledPromiseRejection - TypeError: Cannot read properties of undefined (reading 'number') "
If I get rid of the component, the app works just fine.
Also, I made sure that the component utilized client:visible directive in the Astro file.
The following Github link is the directory that has all the files responsible for rendering the component that uses React CountUp:
https://github.com/Albertyhu/uthan-template/tree/main/src/components/Home/funfact_section
What's the expected result?
React CountUp allows for an animated number to count up.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/withastro-astro-eicrch?file=src%2Fpages%2Findex.astro,src%2Fcomponents%2Ffunfact_section%2Findex.astro,package.json,src%2Fcomponents%2Ffunfact_section%2Fcounter.tsx
Participation
The text was updated successfully, but these errors were encountered: