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
When executing next build a Typescript error is raised:
Linting and checking validity of types ...Failed to compile.
./src/components/MdxComponents/PanoramaViewer/PanoramaViewer.tsx:38:9
Type error: Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[][]' is not assignable to type '(PluginConstructor | [PluginConstructor, any])[]'.
Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[]' is not assignable to type 'PluginConstructor | [PluginConstructor, any]'.
Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[]' is not assignable to type 'PluginConstructor'.
Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[]' provides no match for the signature 'new (viewer: Viewer, config?: any): AbstractPlugin<any>'.
36 | height={'100%'}
37 | width={'100%'}
> 38 | plugins={plugins}
| ^
39 | ></ReactPhotoSphereViewer>
40 | </div>
41 | );
What should have happened?
It should pass the linter and do the build properly. The code is working properly using next dev.
Linting and checking validity of types ...Failed to compile.
./src/components/MdxComponents/PanoramaViewer/PanoramaViewer.tsx:38:9
Type error: Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[][]' is not assignable to type '(PluginConstructor | [PluginConstructor, any])[]'.
Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[]' is not assignable to type 'PluginConstructor | [PluginConstructor, any]'.
Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[]' is not assignable to type 'PluginConstructor'.
Type '(typeof AutorotatePlugin | { autorotateSpeed: string; autorotatePitch: string; })[]' provides no match for the signature 'new (viewer: Viewer, config?: any): AbstractPlugin<any>'.
36 | height={'100%'}
37 | width={'100%'}
> 38 | plugins={plugins}
| ^
39 | ></ReactPhotoSphereViewer>
40 | </div>
41 | );
Interest to fix the bug
I would like to fix this bug!
The text was updated successfully, but these errors were encountered:
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.
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
The text was updated successfully, but these errors were encountered: