Bug: date-fns not found after upgrading to @xmtp/react-sdk@2.0.0
fabriguespe opened this issue · comments
Describe the bug
After upgrading to @xmtp/react-sdk@2.0.0, a module not found error is encountered preventing the application from functioning correctly.
Module not found: Error: Can't resolve 'date-fns/min' in '/Users/fabrizioguespe/DevRel/my-app/node_modules/@xmtp/react-sdk/lib'
Did you mean 'index.js'?
BREAKING CHANGE: The request 'date-fns/min' 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.
Steps to reproduce the bug
To Reproduce
Steps to reproduce the behavior:
create-react-app
fresh install
Or clone this repo with the packages imported already and with polyfill create-react-app-xmtp-react-sdk-2.- Upgrade to @xmtp/react-sdk@2.0.0
npm install
npm run start
ornpm run build
- See error
Additional context
- Node version: v18.16.1
- Running npm install date-fns does not resolve the issue.
this was resolved by #125