12-02-2021 07:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

12-02-2021 07:03
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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 😕

12-03-2021 02:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


12-03-2021 02:21
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
