Closed rochapablo closed 6 years ago
how have you configured react-native to support the tilde (~
) character in absolute paths? I've never seen that before
Ouch!
I cant say where I took that (~
) from; but as I was working with and was all working so, I haven't thought that could be the problem.
And indeed, was remove those tilde and all went back to work.
Thank you.
@ds300, shouldn't this also be working on IOS?
I'm getting the same error, while on Android everything it's working.
error: bundling failed: "Unable to resolve module `services/persist/actions` from `/MyApp/src/store.js`: Module does not exist in the module map
"baseUrl": ".",
"paths": {
...
"services/*" : ["./src/services/*"]
}
Remember that react-native and TypeScript use individual methods to find files with absolute paths. react-native can't read the configuration in your tsconfig.json.
If you put a file in src/services/persist/actions
and you want to import it with the string "services/persist/actions"
then you need to put a package.json file containing only {"name": "services"}
at src/services/package.json
I don't know what happened, it was working but because I had to re-install my packages I can't get this working anymore.
I tried
but it still the same
follow my tsconfig