react-native: While trying to resolve module mobx-react
from file \App.tsx
, the package \node_modules\mobx-react\package.json
was successfully found. However, this package itself specifies a main
module field that could not be resolved (\node_modules\mobx-react\dist\mobxreact.esm.js
. Indeed, none of these files exist:
#2602
-
Hi, I'm developing on react, I decided to try react-native. I took a bunch of react-native and mobx. But that something went wrong. And at first everything worked correctly, then I decided to add react-native-push-notification to the project and everything fell. Tried to roll back, but to no avail. If you have any ideas, I would be very grateful. "scripts": {
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Thank you for reporting this. It was a small mistake in yesterday's migration chores to monorepo. Please update mobx-react to 7.0.4 and it should work. |
Beta Was this translation helpful? Give feedback.
-
Thank you for your prompt response, but now it returns the following error (react-native doesn't seem to use react-dom): Error: Unable to resolve module |
Beta Was this translation helpful? Give feedback.
Thank you for reporting this. It was a small mistake in yesterday's migration chores to monorepo. Please update mobx-react to 7.0.4 and it should work.