# Zoom video sdk error 'app-previewkit' is not a known element

**URL:** <https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622>\
**Category:** Web\
**Tags:** video-sdk\
**Created:** [September 7, 2023, 12:08pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622 "2023-09-07T12:08:13Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 7, 2023, 12:08pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/1 "2023-09-07T12:08:13Z")

</div>

**Description**  
I’m trying to implement Zoom Video SDK in Angular Application and I’m getting below error.

Zoom video sdk error: **‘app-previewkit’ is not a known element**

**Browser Console Error**  
Getting error at the time of build

**Which Web Video SDK version?**  
“@zoom1234/videosdk-ui-toolkit”: “^ **1.8.12** ”,

**Video SDK Code Snippets**  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/b/7bd972665afdadf3d87453f7c3f85d4747b8231d.png)

**Screenshots**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/1/8/18402962169636def80ddcc815955fdcb5e8462e.png)

**Troubleshooting Routes**  
Referred linked is : _[GitHub - zoom/videosdk-ui-toolkit-web: The Zoom Video SDK UI toolkit is a prebuilt video chat user interface powered by the Zoom Video SDK.](https://github.com/zoom/videosdk-ui-toolkit-web)_

**Device (please complete the following information):**

- Device: Windows
- OS: 10
- Browser: Chrome
- Browser Version: Version 116.0.5845.142 (Official Build) (64-bit)

**Additional context**  
Share in working Zoom Video SDK application with **Angular**

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 7, 2023, 1:34pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/2 "2023-09-07T13:34:44Z")

</div>

Hi @vishwajeetbhosale ,

Can you share the snippet of where you imported the CSS styles?

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 7, 2023, 1:56pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/3 "2023-09-07T13:56:36Z")

</div>

@rehema.zoom , in **‘angular.json’** and line number is **32**

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/e/5/e5c815ae437ac32ddf15d41538672b098eea9c88.png)

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 8, 2023, 12:46pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/4 "2023-09-08T12:46:02Z")

</div>

@rehema.zoom, any update on this?

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 8, 2023, 1:53pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/5 "2023-09-08T13:53:08Z")

</div>

Hi @vishwajeetbhosale ,

Thank you for sharing the screenshot, I see that it has been imported exactly as done in the ReadMe instructions. I will see if I can replicate the issue and get back to you post-troubleshooting.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 8, 2023, 2:10pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/6 "2023-09-08T14:10:23Z")

</div>

@rehema.zoom, try to do it using **Angular** application, this will helpful.

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 11, 2023, 5:41pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/7 "2023-09-11T17:41:48Z")

</div>

Hi @vishwajeetbhosale ,

I wanted to let you know I was able to replicate the issue and that it seems to be angular-specific, in regards to using custom elements within the framework. I’m still working to find a solution, but here’s a piece of documentation I’ve been looking into to see what guidance it can provide: [Angular Documentation](https://angular.io/guide/elements). I will reach back out when I find a way to avoid this error.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 12, 2023, 8:00am UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/8 "2023-09-12T08:00:34Z")

</div>

@rehema.zoom, Thank you for the response.

I’ll also check regards to using custom elements within the framework, with provided link, but please share the solution ASAP you sorted out.

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 15, 2023, 12:34am UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/9 "2023-09-15T00:34:55Z")

</div>

Hi @vishwajeetbhosale ,

My apologies for the delayed response. I have found a workaround for this issue. In the component that you’re rendering the app preview tag and importing the UIToolKit, you’ll want to import CUSTOM\_ELEMENTS\_SCHEMA from angular/core by adding this line:

`import {NgModule, CUSTOM_ELEMENTS_SCHEMA} from '@angular/core' `

You’ll also need to add this line to your component module on the same page:

```js
schemas: [
CUSTOM_ELEMENTS_SCHEMA
],

```

Please let me know if this resolves the error. If not, we can continue to troubleshoot from there.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 15, 2023, 11:30am UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/10 "2023-09-15T11:30:55Z")

</div>

Hey @rehema.zoom, **thank you** responding with solution, I’ll try it and let you know.

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 18, 2023, 5:23am UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/11 "2023-09-18T05:23:42Z")

</div>

@rehema.zoom, I’m going to try it the solution you provided, it will be good if you provided sample in Angular for reference.

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 19, 2023, 1:18pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/12 "2023-09-19T13:18:24Z")

</div>

HI @vishwajeetbhosale ,

Here is a code snippet of how I integrated the UI toolkit into the Angular starter application (used in [their documentation](https://angular.io/tutorial/first-app)).

```js
import { Component } from '@angular/core'
import {NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'
import { CommonModule } from '@angular/common'
import * as UIToolkit from '@zoom/videosdk-ui-toolkit'

console.log(UIToolkit)
@Component({
  selector: 'app-home',
  standalone: true, 
  imports: [CommonModule], 
  template: `
    <app-previewkit></app-previewkit>
  `,
  schemas: [
    CUSTOM_ELEMENTS_SCEHMA
  ],
  styleUrls: [
    './home.component.css',
  ]
})
export class HomeComponent {
}

```

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 25, 2023, 12:18pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/13 "2023-09-25T12:18:46Z")

</div>

Hey @rehema.zoom, is it possible to you share the sample angular application which you created to test this, because I’m facing the issue to add **schemas:[CUSTOM\_ELEMENTS\_SCEHMA]** in component.

Getting below error,

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/a/4/a4bd15dfd64136c9d5185b1db50427d643adc891.png)

---

<div class="post-metadata">

**Author:** ![vishwajeetbhosale](https://avatars.discourse-cdn.com/v4/letter/v/f19dbf/32.png) [@vishwajeetbhosale](https://devforum.zoom.us/u/vishwajeetbhosale)\
**Post date:** [September 26, 2023, 1:42pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/14 "2023-09-26T13:42:23Z")

</div>

Hey @rehema.zoom any update on my sample app request.

---

<div class="post-metadata">

**Author:** ![rehema.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rehema.zoom/32/40323_2.png) [@rehema.zoom](https://devforum.zoom.us/u/rehema.zoom)\
**Post date:** [September 26, 2023, 2:50pm UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/15 "2023-09-26T14:50:42Z")

</div>

Hi @vishwajeetbhosale ,

The error you’re getting seems to be associated with TypeScript, while the application I used + code I attached is using Javascript _only_. I’ve attached [an article](https://dev.to/this-is-learning/understanding-excess-property-checking-in-typescript-ook) that may provide a solution.

Thanks,  
Rehema

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 27, 2023, 12:51am UTC](https://devforum.zoom.us/t/zoom-video-sdk-error-app-previewkit-is-not-a-known-element/94622/16 "2023-10-27T00:51:24Z")

</div>

Closed on October 27, 2023, 12:51am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
