Article - CS358656
Errors encountered in ThingWorx Web Component Tutorial
Modified: 11-Nov-2024
Applies To
- ThingWorx Platform 8.5 to 9.3
Description
- Getting errors in ThingWorx Web Component Tutorial
- Running mub for the Visual SDK results in errors
- Errors being encountered:
- Error 1:
npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects ls-remote ssh://[email protected]/twx-wc-sdk/ptcs-library.git npm ERR! Warning: Permanently added 'github.com,140.82.114.3' (ECDSA) to the list of known hosts. npm ERR! ERROR: Repository not found. npm ERR! fatal: Could not read from remote repository. npm ERR! npm ERR! Please make sure you have the correct access rights npm ERR! and the repository exists.
-
- Error 2:
$ mub
Starting series of gulp tasks for the wrapping...
exec error: Error: Command failed: gulp --e --wd /mnt/c/Users/ferti/GitHub/simple-el-widget
ReferenceError: primordials is not defined
at fs.js:47:5
at req_ (/mnt/c/Users/ferti/Downloads/twx-wc-sdk-utility/node_modules/natives/index.js:143:24)
at Object.req [as require] (/mnt/c/Users/ferti/Downloads/twx-wc-sdk-utility/node_modules/natives/index.js:55:10)
at Object.<anonymous> (/mnt/c/Users/ferti/Downloads/twx-wc-sdk-utility/node_modules/vinyl-fs/node_modules/graceful-fs/fs.js:1:37)
at Module._compile (node:internal/modules/cjs/loader:1101:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
at Module.load (node:internal/modules/cjs/loader:981:32)
at Function.Module._load (node:internal/modules/cjs/loader:822:12)
at Module.require (node:internal/modules/cjs/loader:1005:19)
at require (node:internal/modules/cjs/helpers:102:18)
-
- Error 3:
$ mub exec error: Error: Command failed: gulp --e --wd C:\Users\<USER>\Downloads\work\simple-el-widget -LLLL 'task_modifyPtcsMoment' errored after 676 μs Error: ENOENT: no such file or directory, rename
-
- Error 4:
$ mub
Starting series of gulp tasks for the wrapping...
exec error: Error: Command failed: gulp --e --wd C:\Users\<USER>\Downloads\work\simple-el-widget
Error [ERR_REQUIRE_ESM]: require() of ES Module C:\Users\<USER>\node_modules\vinyl-paths\index.js from C:\Users\<USER>\Downloads\work\twx-wc-sdk-utility\gulpfile.js not supported.
Instead change the require of index.js in C:\Users\<USER>\Downloads\work\twx-wc-sdk-utility\gulpfile.js to a dynamic import() which is available in all CommonJS modules.
at Object.<anonymous> (C:\Users\<USER>\Downloads\work\twx-wc-sdk-utility\gulpfile.js:3:20)
at async Promise.all (index 0) {
code: 'ERR_REQUIRE_ESM'
}
-
- Error 5:
PS E:\simple-el-widget> mub
Starting series of gulp tasks for the wrapping...
exec error: Error: Command failed: gulp --e --wd E:\simple-el-widget
[11:27:14] Local modules not found in E:\twx-wc-sdk-utility
[11:27:14] Try running: npm install
This is a printer-friendly version of Article 358656 and may be out of date. For the latest version click CS358656