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

**URL:** <https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036>\
**Category:** Web\
**Created:** [June 11, 2020, 6:16am UTC](https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036 "2020-06-11T06:16:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![surekha](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@surekha](https://devforum.zoom.us/u/surekha)\
**Post date:** [June 11, 2020, 6:16am UTC](https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036/1 "2020-06-11T06:16:49Z")

</div>

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

> **[zoom/sample-app-web](https://github.com/zoom/sample-app-web/)**
>
> Zoom Web SDK Sample App. Contribute to zoom/sample-app-web development by creating an account on GitHub.

  
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](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**

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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 16, 2020, 5:18pm UTC](https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036/2 "2020-06-16T17:18:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![surekha](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@surekha](https://devforum.zoom.us/u/surekha)\
**Post date:** [June 17, 2020, 5:12am UTC](https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036/3 "2020-06-17T05:12:06Z")

</div>

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.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/3/35415a65f905e0ea7c2d961270cbdee49e1d9fc2.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1ebefdb78970fa5adda51bab93d3a062bad47a73.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1c89c6ba31c1878ef72c285d6998094bfd2d74cb.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/f/f887a67b1b397c0321899ef93cde7bc6076b6202.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b474c67d35e42c1966548c2ef03f6caa65f136fe.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/b/b5f2251ffdecf3e34f3283c13f6ea8185f00da28.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/1e045d339aa9eff1c403c4f3500469f616d82371.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/0/0f100fca3470db7fcce339b0892ef75bb673e651.png)

 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/1/10ccfb869c62f4ef951f48b7eaadbb88d8326ba5.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8688a95320a6d96ef30e4b27958df040a4b7373e.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/9/93cac18d95605fc24a3091c2126611cdaf532142.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/7/7f5264fa408f0e231cd6f493abe2b33549139c3e.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/6023df487e770b69dea87cb83880440813ac8e36.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/6/62cd6da4a7c20040f47b17b59974834d8b6411a0.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8da3cf8ef9cf72aac8906951f79612b5ad92fad6.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/8/8775e7fb4596daee4e39dc674b6e99729e27992f.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/5/57360bc4920eb4df62a6c519b5556d7571b96479.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/a/a9ac943991ff892b722df30c13452510c8f681a7.png)  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/2X/4/462b6ea4c1a6d24360dcf92f4fea2558f95d6fdd.png)  
±- 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](http://localhost:9999/index.html) --watch

i ｢wds｣: Project is running at [http://0.0.0.0:9999/](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](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](http://0.0.0.0:9999)] (webpack)-dev-server/client?[http://0.0.0.0:9999](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.

---

<div class="post-metadata">

**Author:** ![surekha](https://avatars.discourse-cdn.com/v4/letter/s/ce73a5/32.png) [@surekha](https://devforum.zoom.us/u/surekha)\
**Post date:** [June 17, 2020, 5:20am UTC](https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036/4 "2020-06-17T05:20:18Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [June 18, 2020, 11:12pm UTC](https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036/5 "2020-06-18T23:12:40Z")

</div>

Hey @surekha,

You can email [developersupport@zoom.us](mailto: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

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 10:08pm UTC](https://devforum.zoom.us/t/failed-to-compile-error-while-running-web-sdk-1-7-8-example-from-local-directory/21036/6 "2020-08-21T22:08:32Z")

</div>

Closed on August 21, 2020, 10:08pm UTC


