04-13-2020 02:56 - edited 04-13-2020 03:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

04-13-2020 02:56 - edited 04-13-2020 03:12
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Issue extended from this [https://community.fitbit.com/t5/SDK-Development/Import-external-module/m-p/4178893#M11671]
I'm still using the sdk-cli to use the module but when i try to import a module it return me the same error ( Cannot find module '{module name}'
t.default at sim-file:/bootstrap:696,15)
What can i do resolve this?
The module that i'm using was installed with the command npx create-fitbit-app <project-name> [https://dev.fitbit.com/build/guides/command-line-interface/]
I create a repo of my code to resolve the problem and show the code [https://github.com/marcs7/TestCodeFitBitApp]
edit:
Using ES6 format (import from) it retruns this error:
code: UNRESOLVED_IMPORT
watchFiles: path file
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! test@0.1.0 build: `fitbit-build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the test@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Build failed with code: 1

- Labels:
-
JavaScript
04-21-2020 06:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


04-21-2020 06:29
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
- Who Voted for this post?
Not all modules are supported, but it looks like you don't have `github-from-package` installed?
07-20-2020 12:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-20-2020 12:33
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Will modules that aren't on the list of supported modules definitely not work?

07-22-2020 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-22-2020 15:17
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I think that will not work, to avoid any issue I’m using fetch api and pass data through rest api, when possible. I’m thinking that I will switch to a self made device to avoid the restrictions to this device (Fitbit ionic)

07-15-2021 08:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

07-15-2021 08:53
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Is there any way to check whether a module is supported?

