Closed whittlem closed 4 years ago
I installed the "path" and "fs" dependencies...
yarn add path yarn add fs
And now getting this error message:
error: bundling failed: Error: While trying to resolve module fs
from file app/node_modules/@tensorflow/tfjs-node/dist/io/file_system.js
, the package app/node_modules/fs/package.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (app/node_modules/fs/index.js
. Indeed, none of these files exist:
app/node_modules/fs/index.js(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
app/node_modules/fs/index.js/index(.native||.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
at ResolutionRequest.resolveDependency (app/node_modules/metro/src/node-haste/DependencyGraph/ResolutionRequest.js:65:15)
at DependencyGraph.resolveDependency (app/node_modules/metro/src/node-haste/DependencyGraph.js:283:16)
at Object.resolve (app/node_modules/metro/src/lib/transformHelpers.js:261:42)
at dependencies.map.result (app/node_modules/metro/src/DeltaBundler/traverseDependencies.js:399:31)
at Array.map (It should work. If you cannot add it as part of build. You can use the built .js file from https://github.com/anandanand84/technicalindicators/tree/master/dist
@anandanand84, I copied the contents of the link above to ./assets/technicalindicators
I then tried to import it like this: import { SMA } from './assets/technicalindicators';
In React / React Native it will load the index.js in the directly if not specified.
error: bundling failed: Error: Unable to resolve module @tensorflow/tfjs
from /app/assets/tradecrypto/index.js
: Module @tensorflow/tfjs
does not exist in the Haste module map
What should I do here? I would normally add the dependencies but if I have the build file this shouldn't be necessary right?
Are you able to help?
@anandanand84, any news with this?
Tensorflow removed in version 3.0. It should work now.
Does "technicalindicators" work with React Native?
I installed it with: "yum add technicalindicators"
And have tried loading the library with these: import { SMA } from 'technicalindicators'; import SMA from 'technicalindicators'; const { SMA } = require('technicalindicators');
I am getting this error message:
error: bundling failed: Error: Unable to resolve module
path
fromapp/node_modules/technicalindicators/dist/index.js
: Modulepath
does not exist in the Haste module mapAny ideas?