Open pacoorozco opened 3 months ago
I've found a workaround which is adding the plugins
directly as an array.
<ReactPhotoSphereViewer
src={src}
height={'100%'}
width={'100%'}
plugins={[
[
AutorotatePlugin,
{
autorotateSpeed: '1rpm',
autorotatePitch: '3deg',
},
],
]}
></ReactPhotoSphereViewer>
hi! have you tried to add a explicit type definition to the array?
Hi
I've tried several ones but maybe not the right one 😅
Can you suggest one?
Aquel que planta árboles bajo los que sabe muy bien que nunca se sentará, ha descubierto el auténtico significado de la vida.
-------- Mensaje original -------- El 5/8/24 18:39, Elia Lazzari ha escrito:
hi! have you tried to add a explicit type definition to the array?
— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>
What happened?
When executing
next build
a Typescript error is raised:What should have happened?
It should pass the linter and do the build properly. The code is working properly using
next dev
.Code
Sandbox Link
No response
Library Version
6.0.0
What operating system are you using?
Ubuntu
What browser are you using?
None
Logs
Interest to fix the bug