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 am trying to use VideoSDK with vue3 and vite. When I use the cope from the videosdk-rtc-prebuilt-examples repository I get this error on build.
8:27:59 AM [vite] Internal server error: Failed to resolve entry for package "@videosdk.live/rtc-js-prebuilt". The package may have incorrect main/module/exports specified in its package.json.
Plugin: vite:import-analysis
File: C:/Users/fouro/code/myintellectualspace/front/src/components/VideoComponent.vue
at packageEntryFailure (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:34405:11)
at resolvePackageEntry (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:34402:5)
at tryNodeResolve (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:34160:20)
at Context.resolveId (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:33962:28)
at async Object.resolveId (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:35209:32)
at async TransformContext.resolve (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:34974:23)
at async normalizeUrl (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:40139:34)
at async TransformContext.transform (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:40279:47)
at async Object.transform (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:35277:30)
at async loadAndTransform (file:///C:/Users/fouro/code/myintellectualspace/front/node_modules/vite/dist/node/chunks/dep-1513d487.js:39776:29) (x2)
This is the contents of my VideoComponent.vue
<script>
import { VideoSDKMeeting } from '@videosdk.live/rtc-js-prebuilt'
import { API_KEY } from '@/secrets'
export default {
name: 'App',
data() {
return {
name: 'Flavio',
}
},
mounted: async function () {
const apiKey = process.env.VUE_APP_VIDEOSDK_API_KEY
const meetingId = 'milkyway'
const name = 'Demo User'
const config = {
name: name,
meetingId: meetingId,
apiKey: API_KEY,
region: 'sg001', // region for new meeting
containerId: null,
redirectOnLeave: 'https://www.videosdk.live/',
micEnabled: true,
webcamEnabled: true,
participantCanToggleSelfWebcam: true,
participantCanToggleSelfMic: true,
participantCanLeave: true, // if false, leave button won't be visible
chatEnabled: true,
screenShareEnabled: true,
pollEnabled: true,
whiteboardEnabled: true,
raiseHandEnabled: true,
recording: {
autoStart: true, // auto start recording on participant joined
enabled: true,
webhookUrl: 'https://www.videosdk.live/callback',
awsDirPath: `/meeting-recordings/${meetingId}/`, // automatically save recording in this s3 path
},
livestream: {
autoStart: true,
enabled: true,
},
layout: {
type: 'SPOTLIGHT', // "SPOTLIGHT" | "SIDEBAR" | "GRID"
priority: 'PIN', // "SPEAKER" | "PIN",
// gridSize: 3,
},
branding: {
enabled: true,
logoURL:
'https://static.zujonow.com/videosdk.live/videosdk_logo_circle_big.png',
name: 'Prebuilt',
poweredBy: false,
},
permissions: {
pin: true,
askToJoin: false, // Ask joined participants for entry in meeting
toggleParticipantMic: true, // Can toggle other participant's mic
toggleParticipantWebcam: true, // Can toggle other participant's webcam
drawOnWhiteboard: true, // Can draw on whiteboard
toggleWhiteboard: true, // Can toggle whiteboard
toggleRecording: true, // Can toggle meeting recording
toggleLivestream: true, //can toggle live stream
removeParticipant: true, // Can remove participant
endMeeting: true, // Can end meeting
changeLayout: true, //can change layout
},
joinScreen: {
visible: true, // Show the join screen ?
title: 'Daily scrum', // Meeting title
meetingUrl: window.location.href, // Meeting joining url
},
leftScreen: {
// visible when redirect on leave not provieded
actionButton: {
// optional action button
label: 'Video SDK Live', // action button label
href: 'https://videosdk.live/', // action button href
},
},
notificationSoundEnabled: true,
debug: true, // pop up error during invalid config or netwrok error
maxResolution: 'sd', // "hd" or "sd"
}
const meeting = new VideoSDKMeeting()
meeting.init(config)
},
}
</script>
I am trying to use VideoSDK with vue3 and vite. When I use the cope from the videosdk-rtc-prebuilt-examples repository I get this error on build.
This is the contents of my VideoComponent.vue
And my dependency list
And assistance would be greatly appreciated!
The text was updated successfully, but these errors were encountered: