Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

CLI errors on first build

Hi all, i'm a bit confused about this.

I just wanted to start dev a clock face at first.

 

I have been a dev for 5 years now so i just wanted to use the CLI to use VSCode. So using the npx command with create-fitbit-app, install dependancies etc.

 

When i want to check the clockface in the OS Simulator, i use the npx fitbit and i'm connected successfully.

 

The problem occurs when i use the command build.

I get this error 

Error loading tslib helper library.
C:\Development\Fitbit\ClockFaces\Fitbit-line-clock\node_modules\@fitbit\sdk\lib\plugins\typescript\tslib.const.js:13
    throw e;
    ^

Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './tslib.es6.js' is not defined by "exports" in C:\Development\Fitbit\ClockFaces\Fitbit-line-clock\node_modules\tslib\package.json
    at new NodeError (node:internal/errors:371:5)
    at throwExportsNotFound (node:internal/modules/esm/resolve:429:9)
    at packageExportsResolve (node:internal/modules/esm/resolve:683:3)
    at resolveExports (node:internal/modules/cjs/loader:482:36)
    at Function.Module._findPath (node:internal/modules/cjs/loader:522:31)
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)
    at Function.resolve (node:internal/modules/cjs/helpers:108:19)
    at Object.<anonymous> (C:\Development\Fitbit\ClockFaces\Fitbit-line-clock\node_modules\@fitbit\sdk\lib\plugins\typescript\tslib.const.js:8:31)
    at Module._compile (node:internal/modules/cjs/loader:1097:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1149:10) {
  code: 'ERR_PACKAGE_PATH_NOT_EXPORTED'
}

For now i just can't find any solution 😕

Best Answer
0 Votes
1 REPLY 1

HI @MrDeliK - Do try Fitbit Studio with the Simulator, it is way simpler.

Author | ch, passion for improvement.

Best Answer