GoEvaCom / eosjs-react-native

This is a simple react-native project in which the steps to configure eosjs on react-native are shown.
http://eva.coop/
MIT License
33 stars 7 forks source link

[solved] Unable to resolve module typescript/2.9/node_modules #1

Closed MarcelBlockchain closed 6 years ago

MarcelBlockchain commented 6 years ago

Hi there, thanks for this library! Hopefully it will be used in many RN EOS projects.

So I tried to install it in 1) this copied repo and 2) my app, and followed the instructions given. Unfortunately in both cases I get the following error. I use Mac OS High Sierra, yarn 1.70, npm 6.20

error: bundling failed: Error: Unable to resolve module../Library/Caches/typescript/2.9/node_modules/@types/reactfrom/Users/admin/EOSwallet/App.js: The module../Library/Caches/typescript/2.9/node_modules/@types/reactcould not be found from/Users/admin/EOSwallet/App.js. Indeed, none of these files exist:

eoswallet

The tips at the rn-nodeify repo did not help help. Trying to install typescript manually as well.

rn-nodeify won't work with modules that are added using npm link. modules that contain a .babelrc will cause problems with the latest react-native version (0.20 at this time), remove them after installation (rm node_modules//.babelrc) when installing a package from git, the postinstall hook isn't triggered, run it manually instead (npm run postinstall) restart the react-native packager after installing a module! removing the packager cache helps as well sometimes (rm -fr $TMPDIR/react-) rn-nodeify currently uses npm to install shims. PRs are welcome to make it compatible with yarn

Gonna try last tip and let you know about the results:

use npm@3. npm@5 has some issues that cause node_modules to disappear. See:

MarcelBlockchain commented 6 years ago

using npm@3 did not work

MarcelBlockchain commented 6 years ago

Fixed. Bug in VScode, although I was not even using Typescript

https://github.com/Microsoft/vscode/issues/52675

raphaelgodro commented 6 years ago

Seems like its been solved.