Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 🐛 Fixed the error (Typescript: Type 'string' is not assignab… #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

agb
Copy link

@agb agb commented Aug 13, 2024

image

I would have preferred to implement it directly in BlurFadeProps, but unfortunately, MarginType isn't considered a public type.

image

Copy link

vercel bot commented Aug 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
portfolio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 13, 2024 3:58pm

@Shailendra1703
Copy link

Shailendra1703 commented Aug 31, 2024

Hello @agb @dillionverma

I tried fixing my issue with this but when I deployed my site I got the client side exception. with this error

syntaxerror: Failed to construct 'IntersectionObserver': rootMargin must be specified in pixels or percent.

So to fix this I simply made the type as any

image

@agb
Copy link
Author

agb commented Sep 1, 2024

Hello @agb @dillionverma

I tried fixing my issue with this but when I deployed my site I got the client side exception. with this error

syntaxerror: Failed to construct 'IntersectionObserver': rootMargin must be specified in pixels or percent.

So to fix this I simply made the type as any

image

I don't know exactly what the problem is, but you can change const inViewResult = true; if you just want to skip the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants