Cannot import { ZoomMtg } from '@zoomus/websdk' on client side code

Description
I’m trying to integrate zoom in my own web app (a simple node.js app). But import { ZoomMtg } from '@zoomus/websdk'; doesn’t work on client side with the error from browser “Uncaught SyntaxError: Cannot use import statement outside a module”.

Error
Error from browser: “Uncaught SyntaxError: Cannot use import statement outside a module”.

Which version?
1.8.1

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. import { ZoomMtg } from '@zoomus/websdk'; on client.js (vs. server.js)

Hey @williamwang15,

Have you tried googling this error yet?

You can also use the CDN version if you do not have a bundler / webpack project (react, angular, vue).

Thanks,
Tommy

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