On the other hand, I tried writing a sample app on my own and I get this in the browser console log
“Uncaught SyntaxError: Cannot use import statement outside a module”
— above error is referencing “import { ZoomMtg } from ‘@zoomus/websdk’;”
websdk-local@1.7.6 start /home/srikar/workspace/external/sample-app-web/Local
set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch
「wds」: Project is running at http://0.0.0.0:9999/
「wds」: webpack output is served from /static
「wds」: Content not from webpack is served from /home/srikar/workspace/external/sample-app-web/Local
events.js:287
throw er; // Unhandled ‘error’ event
^
Error: spawn http://localhost:9999/index.html ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:267:19)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted ‘error’ event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:273:12)
at onErrorNT (internal/child_process.js:469:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: ‘ENOENT’,
code: ‘ENOENT’,
syscall: ‘spawn http://localhost:9999/index.html’,
path: ‘http://localhost:9999/index.html’,
spawnargs: [ ‘http://0.0.0.0:9999/’ ]
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! websdk-local@1.7.6 start: set NODE_ENV=development && set BABEL_ENV=development && webpack-dev-server --config webpack.config.dev.js --https false --open http://localhost:9999/index.html --watch
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the websdk-local@1.7.6 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/srikar/.npm/_logs/2020-05-03T12_16_59_247Z-debug.log
srikar@laptop:~/workspace/external/sample-app-web/Local$