Web Meeting SDK version 2.0.1

Component View not exported

I’m sorry to inform you that it seems like you have forgotten to actually add the Component Embedded package as a submodule or an export. So you can’t actually import it.

I tried using all these variants, but with no luck:

import ZoomMtgEmbedded from "@zoomus/websdk/embedded"
const ZoomMtgEmbedded = require("@zoomus/websdk").embedded
import {embedded as ZoomMtgEmbedded } from "@zoomus/websdk"

Failed to compile. Module not found: Can't resolve '@zoomus/websdk/embedded'

What does work though is to manually import the file, instead of the module, like so:

import ZoomMtgEmbedded from "@zoomus/websdk/dist/zoomus-websdk-embedded.umd.min.js"

Fix

Here’s how to fix it on your part.

  1. Add an embedded.js file next to your package.json, which looks exactly like the index.js file, like so:
'use strict';

module.exports = require('./dist/zoomus-websdk-embedded.umd.min');

2.Now you can import using import ZoomMtgEmbedded from '@zoomus/websdk/embedded'