-
-
Notifications
You must be signed in to change notification settings - Fork 327
Description
I’m facing an issue with react-native-mmkv (v3.2.0) on a project using:
React Native: 0.76.5
New Architecture: Enabled
react-native-web: 0.19.12
react-native-mmkv: 3.2.0
The library works as expected on native platforms (Android/iOS), but running the app on the web results in the following errors:
ERROR in ./node_modules/react-native-mmkv/lib/module/index.js 3:0-23
Module not found: Error: Can't resolve './MMKV' in '/Users/example/node_modules/react-native-mmkv/lib/module'
Did you mean 'MMKV.js'?
BREAKING CHANGE: The request './MMKV' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e.g., a module with JavaScript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
ERROR in ./node_modules/react-native-mmkv/lib/module/index.js 4:0-24
Module not found: Error: Can't resolve './hooks' in '/Users/example/node_modules/react-native-mmkv/lib/module'
Did you mean 'hooks.js'?
BREAKING CHANGE: The request './hooks' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e.g., a module with JavaScript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
ERROR in ./node_modules/react-native-mmkv/lib/module/index.js 5:0-31
Module not found: Error: Can't resolve './Types' in '/Users/example/node_modules/react-native-mmkv/lib/module'
Did you mean 'Types.js'?
BREAKING CHANGE: The request './Types' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e.g., a module with JavaScript mimetype, a '.mjs' file, or a '.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.