React-multimedia-gallery #5189
Unanswered
bubbleswap
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Have resolved a lot of ts and dependencies issues, it seemed like I was almost able to build and got these new errors that are not npm or dependencies related, has anyone been able to successfully deploy the react-multimedia-gallery webpart?
react-image-gallery@1.1.0 C:\Users-----\Pnp\react-multimedia-gallery
+-- @microsoft/rush-stack-compiler-4.5@0.5.1
+-- @microsoft/sp-build-web@1.20.1
+-- @microsoft/sp-core-library@1.19.0
+-- @microsoft/sp-lodash-subset@1.19.0
+-- @microsoft/sp-module-interfaces@1.20.1
+-- @microsoft/sp-office-ui-fabric-core@1.19.0
+-- @microsoft/sp-property-pane@1.19.0
+-- @microsoft/sp-tslint-rules@1.20.1
+-- @microsoft/sp-webpart-base@1.19.0
+-- @microsoft/sp-webpart-workbench@1.12.1
+-- @pnp/pnpjs@2.15.0
+-- @pnp/polyfill-ie11@2.0.2
+-- @pnp/spfx-controls-react@3.18.1
+-- @pnp/spfx-property-controls@3.17.1
+-- @types/chai@4.3.16
+-- @types/es6-promise@0.0.33
+-- @types/jquery@3.5.30
+-- @types/mocha@10.0.7
+-- @types/react-dom@18.3.0
+-- @types/react@18.3.3
+-- @types/webpack-env@1.18.5
+-- @typescript-eslint/eslint-plugin@7.17.0
+-- @typescript-eslint/parser@7.17.0
+-- @uifabric/fluent-theme@7.7.33
+-- @voitanos/jest-preset-spfx-react16@1.5.0
+-- ajv@8.17.1
+-- eslint@9.7.0
+-- gulp-sequence@1.0.0
+-- gulp@5.0.0
+-- jest-junit@16.0.0
+-- jest@29.7.0
+-- jquery@3.7.1
+-- lightbox-react@0.3.8
+-- office-ui-fabric-react@7.204.0
+-- react-dom@18.3.1
+-- react-grid-gallery@1.0.1
+-- react-responsive-carousel@3.2.23
+-- react-slick@0.30.2
+-- react@18.3.1
+-- slick-carousel@1.8.1
+-- typescript@5.5.4
+`-- video-react@0.16.0
`PS C:\Users----\Pnp\react-multimedia-gallery> gulp build
Build target: DEBUG
[09:47:19] Using gulpfile ~\Pnp\react-multimedia-gallery\gulpfile.js
[09:47:19] Starting 'build'...
[09:47:19] Starting gulp
[09:47:19] Starting subtask 'pre-copy'...
[09:47:23] Finished subtask 'pre-copy' after 4.23 s
[09:47:23] Starting subtask 'copy-static-assets'...
[09:47:23] Starting subtask 'sass'...
[09:47:23] Warning - [sass] src\webparts\imageGallery\components\ImageGallery\carousel.scss: filename should end with module.sass or module.scss
[09:47:26] Finished subtask 'sass' after 2.57 s
[09:47:26] Starting subtask 'lint'...
[09:47:27] Finished subtask 'lint' after 891 ms
[09:47:27] Starting subtask 'tsc'...
[09:47:27] [tsc] typescript version: 4.5.5
[09:47:27] Finished subtask 'copy-static-assets' after 3.69 s
[09:48:41] Error - [tsc] src/services/spservices.ts(29,7): error TS2322: Type 'WebPartContext' is not assignable to type 'ISPFXContext'.
[09:48:41] [tsc] The types of 'msGraphClientFactory.getClient' are incompatible between these types.
[09:48:41] [tsc] Type '(version: "3") => Promise' is not assignable to type '() => Promise'.
[09:48:41] Error - [tsc] src/webparts/imageGallery/components/ImageGallery/ImageGallery.tsx(7,8): error TS2613: Module '"C:/Users/----/Pnp/react-multimedia-gallery/node_modules/react-grid-gallery/dist/react-grid-gallery"' has no default export. Did you mean to use 'import { Gallery } from "C:/Users/----/Pnp/react-multimedia-gallery/node_modules/react-grid-gallery/dist/react-grid-gallery"' instead?
[09:48:41] Error - [tsc] src/webparts/imageGallery/components/ImageGallery/ImageGallery.tsx(73,9): error TS2322: Type 'import("C:/Users/----/Pnp/react-multimedia-gallery/node_modules/@microsoft/teams-js-v2/dist/MicrosoftTeams").Context' is not assignable to type 'microsoftTeams.Context'.
[09:48:41] [tsc] Types of property 'channelType' are incompatible.
[09:48:41] [tsc] Type 'import("C:/Users/----/Pnp/react-multimedia-gallery/node_modules/@microsoft/teams-js-v2/dist/MicrosoftTeams").ChannelType' is not assignable to type 'microsoftTeams.ChannelType'.
[09:48:41] [tsc] Property 'Shared' is missing in type 'microsoftTeams.ChannelType'.
[09:48:41] Error - 'tsc' sub task errored after 1.23 min
exited with code 2
[09:48:41] 'build' errored after 1.37 min
About to exit with code: 1
Process terminated before summary could be written, possible error in async code not continuing!
Trying to exit with exit code 1`
Beta Was this translation helpful? Give feedback.
All reactions