Failed to compile error while running Web SDK 1.7.8 example from Local directory

Description
I am trying to run the sample project from local directory of Zoom Web SDK Sample App from


Followed all the steps given below but still getting error like,

Error
Module build failed (from ./node_modules/babel-loader/lib/index.js):
C:\nodejs\sample-app-web\Local\node_modules\schema-utils\dist\util\hints.js:16
const currentSchema = { …schema
^^^
SyntaxError: Unexpected token …
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (C:\nodejs\sample-app-web\Local\node_modules\schema-utils\dist\ValidationError.js:11:5)
@ multi ./js/index.js app[0]

Which version?
Web SDK 1.7.8

To Reproduce(If applicable)
Steps to reproduce the behavior:
git clone https://github.com/zoom/sample-app-web.git --branch master --depth 1
cd sample-app-web/Local
npm install
Set the api key, secret, meetingid, password in index.js
npm run start

After these steps getting above error in a chrome browser.

Screenshots

Hey @surekha,

I was unable to reproduce your issue. Make sure the npm install succeeded. Sometimes if your computer has stricter permissions the npm install could fail.

Thanks,
Tommy

Hey Thanks,
Please see below the spool of my command prompt. Where I have followed all the steps again. But I am unable to figure out if npm install is not happening properly. Could you please guide me on this?
Thanks.



















±- import-local@2.0.0
| | -- resolve-cwd@2.0.0 | | – resolve-from@3.0.0
| ±- interpret@1.2.0
| ±- loader-utils@1.2.3
| | ±- emojis-list@2.1.0
| | -- json5@1.0.1 | +-- supports-color@6.1.0 | | – has-flag@3.0.0
| ±- v8-compile-cache@2.0.3
| -- yargs@13.2.4 | +-- cliui@5.0.0 | | +-- string-width@3.1.0 | | | +-- emoji-regex@7.0.3 | | | – is-fullwidth-code-point@2.0.0
| | ±- strip-ansi@5.2.0
| | | -- ansi-regex@4.1.0 | | – wrap-ansi@5.1.0
| | ±- string-width@3.1.0
| | | ±- emoji-regex@7.0.3
| | | -- is-fullwidth-code-point@2.0.0 | | – strip-ansi@5.2.0
| | -- ansi-regex@4.1.0 | +-- find-up@3.0.0 | | – locate-path@3.0.0
| | -- p-locate@3.0.0 | | – p-limit@2.3.0
| | -- p-try@2.2.0 | +-- get-caller-file@2.0.5 | +-- os-locale@3.1.0 | | +-- execa@1.0.0 | | | +-- get-stream@4.1.0 | | | +-- is-stream@1.1.0 | | | +-- npm-run-path@2.0.2 | | | +-- p-finally@1.0.0 | | | – strip-eof@1.0.0
| | ±- lcid@2.0.0
| | | -- invert-kv@2.0.0 | | – mem@4.3.0
| | ±- map-age-cleaner@0.1.3
| | | -- p-defer@1.0.0 | | +-- mimic-fn@2.1.0 | | – p-is-promise@2.1.0
| ±- require-directory@2.1.1
| ±- require-main-filename@2.0.0
| ±- set-blocking@2.0.0
| ±- string-width@3.1.0
| | ±- emoji-regex@7.0.3
| | ±- is-fullwidth-code-point@2.0.0
| | -- strip-ansi@5.2.0 | | – ansi-regex@4.1.0
| ±- which-module@2.0.0
| ±- y18n@4.0.0
| -- yargs-parser@13.1.2 | +-- camelcase@5.3.1 | – decamelize@1.2.0
-- webpack-dev-server@3.11.0 +-- ansi-html@0.0.7 +-- bonjour@3.5.0 | +-- array-flatten@2.1.2 | +-- deep-equal@1.1.1 | | +-- is-arguments@1.0.4 | | +-- is-date-object@1.0.2 | | – object-is@1.1.2
| ±- dns-equal@1.0.0
| ±- dns-txt@2.0.2
| | -- buffer-indexof@1.1.1 | +-- multicast-dns@6.2.3 | | +-- dns-packet@1.3.1 | | – thunky@1.1.0
| -- multicast-dns-service-types@1.1.0 +-- compression@1.7.4 | +-- accepts@1.3.7 | | – negotiator@0.6.2
| ±- bytes@3.0.0
| ±- compressible@2.0.18
| | -- mime-db@1.44.0 | +-- on-headers@1.0.2 | – vary@1.1.2
±- connect-history-api-fallback@1.6.0
±- debug@4.1.1
| -- ms@2.1.2 +-- del@4.1.1 | +-- @types/glob@7.1.2 | | +-- @types/minimatch@3.0.3 | | @types/node@14.0.13
| ±- globby@6.1.0
| | ±- array-union@1.0.2
| | | -- array-uniq@1.0.3 | | +-- pify@2.3.0 | | – pinkie-promise@2.0.1
| | -- pinkie@2.0.4 | +-- is-path-cwd@2.2.0 | +-- is-path-in-cwd@2.1.0 | | – is-path-inside@2.1.0
| | -- path-is-inside@1.0.2 | +-- p-map@2.1.0 | – rimraf@2.6.3
±- express@4.17.1
| ±- array-flatten@1.1.1
| ±- body-parser@1.19.0
| | ±- bytes@3.1.0
| | ±- http-errors@1.7.2
| | | ±- inherits@2.0.3
| | | -- toidentifier@1.0.0 | | – raw-body@2.4.0
| | -- bytes@3.1.0 | +-- content-disposition@0.5.3 | +-- content-type@1.0.4 | +-- cookie@0.4.0 | +-- cookie-signature@1.0.6 | +-- depd@1.1.2 | +-- encodeurl@1.0.2 | +-- escape-html@1.0.3 | +-- etag@1.8.1 | +-- finalhandler@1.1.2 | | – unpipe@1.0.0
| ±- fresh@0.5.2
| ±- merge-descriptors@1.0.1
| ±- methods@1.1.2
| ±- on-finished@2.3.0
| | -- ee-first@1.1.1 | +-- parseurl@1.3.3 | +-- path-to-regexp@0.1.7 | +-- proxy-addr@2.0.6 | | – forwarded@0.1.2
| ±- qs@6.7.0
| ±- range-parser@1.2.1
| ±- send@0.17.1
| | ±- destroy@1.0.4
| | ±- mime@1.6.0
| | -- ms@2.1.1 | +-- serve-static@1.14.1 | +-- setprototypeof@1.1.1 | +-- statuses@1.5.0 | +-- type-is@1.6.18 | | – media-typer@0.3.0
| -- utils-merge@1.0.1 +-- html-entities@1.3.1 +-- http-proxy-middleware@0.19.1 | – http-proxy@1.18.1
| ±- UNMET PEER DEPENDENCY debug@^3.0.0 || ^4.0.0
| ±- eventemitter3@4.0.4
| ±- follow-redirects@1.12.0
| -- requires-port@1.0.0 +-- internal-ip@4.3.0 | +-- default-gateway@4.2.0 | | – ip-regex@2.1.0
| -- ipaddr.js@1.9.1 +-- ip@1.1.5 +-- is-absolute-url@3.0.3 +-- killable@1.0.1 +-- loglevel@1.6.8 +-- opn@5.5.0 +-- p-retry@3.0.1 | – retry@0.12.0
±- portfinder@1.0.26
| ±- async@2.6.3
| -- debug@3.2.6 | – ms@2.1.2
±- schema-utils@1.0.0
±- selfsigned@1.10.7
| -- node-forge@0.9.0 +-- semver@6.3.0 +-- serve-index@1.9.1 | +-- batch@0.6.1 | +-- http-errors@1.6.3 | | +-- inherits@2.0.3 | | – setprototypeof@1.1.0
| -- mime-types@2.1.27 +-- sockjs@0.3.20 | +-- faye-websocket@0.10.0 | +-- uuid@3.4.0 | – websocket-driver@0.6.5
| -- websocket-extensions@0.1.4 +-- sockjs-client@1.4.0 | +-- debug@3.2.6 | | – ms@2.1.2
| ±- eventsource@1.0.7
| | -- original@1.0.2 | +-- faye-websocket@0.11.3 | +-- json3@3.3.3 | – url-parse@1.4.7
| -- querystringify@2.1.1 +-- spdy@4.0.2 | +-- debug@4.1.1 | | – ms@2.1.2
| ±- handle-thing@2.0.1
| ±- http-deceiver@1.2.7
| ±- select-hose@2.0.0
| -- spdy-transport@3.0.0 | +-- debug@4.1.1 | | – ms@2.1.2
| ±- detect-node@2.0.4
| ±- hpack.js@2.1.6
| ±- obuf@1.1.2
| ±- readable-stream@3.6.0
| -- wbuf@1.7.3 | – minimalistic-assert@1.0.1
±- strip-ansi@3.0.1
| -- ansi-regex@2.1.1 +-- supports-color@6.1.0 +-- url@0.11.0 | +-- punycode@1.3.2 | – querystring@0.2.0
±- webpack-dev-middleware@3.7.2
±- webpack-log@2.0.0
| -- ansi-colors@3.2.4 +-- ws@6.2.1 | – async-limiter@1.0.1
-- yargs@13.3.2 – string-width@3.1.0
±- emoji-regex@7.0.3
±- is-fullwidth-code-point@2.0.0
-- strip-ansi@5.2.0 – ansi-regex@4.1.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.13: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\watchpack\node_modules\chokidar\node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {“os”:“darwin”,“arch”:“any”} (current: {“os”:“win32”,“arch”:“x64”})
npm WARN eslint-config-airbnb@17.1.1 requires a peer of eslint@^4.19.1 || ^5.3.0 but none was installed.
npm WARN eslint-config-airbnb-base@13.2.0 requires a peer of eslint@^4.19.1 || ^5.3.0 but none was installed.
npm WARN follow-redirects@1.12.0 requires a peer of debug@^3.0.0 || ^4.0.0 but none was installed.
npm WARN websdk-local@1.7.8 No repository field.

D:\Sample\sample-app-web\Local>npm run start

websdk-local@1.7.8 start D:\Sample\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

i 「wds」: Project is running at http://0.0.0.0:9999/
i 「wds」: webpack output is served from /static
i 「wds」: Content not from webpack is served from D:\Sample\sample-app-web\Local
i 「wdm」: wait until bundle finished: /static/app.min.js
× 「wdm」: Hash: d3660
Version: webpack 4.43.0
Time: 5136ms
Built at: 06/17/2020 10:28:09 AM
Asset Size Chunks Chunk Names
app.min.js 394 KiB app [emitted] app
Entrypoint app = app.min.js
[1] multi (webpack)-dev-server/client?http://0.0.0.0:9999 (webpack)/hot/dev-server.js ./js/index.js 52 bytes {app} [built]
[./js/index.js] 795 bytes {app} [not cacheable] [built] [failed] [1 error]
[./node_modules/strip-ansi/index.js] 161 bytes {app} [built]
[./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:9999] (webpack)-dev-server/client?http://0.0.0.0:9999 4.29 KiB {app} [built]
[./node_modules/webpack-dev-server/client/overlay.js] (webpack)-dev-server/client/overlay.js 3.51 KiB {app} [built]
[./node_modules/webpack-dev-server/client/socket.js] (webpack)-dev-server/client/socket.js 1.53 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/createSocketUrl.js] (webpack)-dev-server/client/utils/createSocketUrl.js 2.91 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/log.js] (webpack)-dev-server/client/utils/log.js 964 bytes {app} [built]
[./node_modules/webpack-dev-server/client/utils/reloadApp.js] (webpack)-dev-server/client/utils/reloadApp.js 1.59 KiB {app} [built]
[./node_modules/webpack-dev-server/client/utils/sendMessage.js] (webpack)-dev-server/client/utils/sendMessage.js 402 bytes {app} [built]
[./node_modules/webpack/hot sync ^./log$] (webpack)/hot sync nonrecursive ^./log$ 170 bytes {app} [built]
[./node_modules/webpack/hot/dev-server.js] (webpack)/hot/dev-server.js 1.59 KiB {app} [built]
[./node_modules/webpack/hot/emitter.js] (webpack)/hot/emitter.js 75 bytes {app} [built]
[./node_modules/webpack/hot/log-apply-result.js] (webpack)/hot/log-apply-result.js 1.27 KiB {app} [built]
[./node_modules/webpack/hot/log.js] (webpack)/hot/log.js 1.34 KiB {app} [built]
+ 21 hidden modules

ERROR in ./js/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
D:\Sample\sample-app-web\Local\node_modules\schema-utils\dist\util\hints.js:16
const currentSchema = { …schema
^^^
SyntaxError: Unexpected token …
at createScript (vm.js:56:10)
at Object.runInThisContext (vm.js:97:10)
at Module._compile (module.js:542:28)
at Object.Module._extensions…js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object. (D:\Sample\sample-app-web\Local\node_modules\schema-utils\dist\ValidationError.js:11:5)
@ multi ./js/index.js app[0]
i 「wdm」: Failed to compile.

Hey Tommy,

Thanks for your reply. I wanted to check if I can directly mail through this mailbox?

Is it ok if we chat and sort out this issue on this email id?

Please do let me know.

Thanks and Regards,

Surekha

Hey @surekha,

You can email developersupport@zoom.us if you would like developer support over email.

I was unable to reproduce your issue. Can you try installing the Web SDK on a different computer where you have full permission?

Thanks,
Tommy