ibitcy / eo-locale

šŸŒInternationalize React apps šŸ‘”Elegant lightweight library based on Internationalization API
https://eo-locale.netlify.com/
MIT License
348 stars 12 forks source link

React 18 #100

Closed cubucul closed 2 years ago

cubucul commented 2 years ago

Hi! I like to use your library, but it does not work with React 18.

npx create-react-app my-app
cd my-app
npm i @eo-locale/react --save
ruslanchek commented 2 years ago

Hi! Thank you! Iā€™ve planned to upgrade it to React 18 today

pret-a-porter commented 2 years ago

Beta version was released https://www.npmjs.com/package/@eo-locale/core/v/1.6.0-beta.0

cubucul commented 2 years ago

I have an error when I am trying to install beta with npm

npm i @eo-locale/react@1.6.0-beta.0
npm ERR! code EUNSUPPORTEDPROTOCOL
npm ERR! Unsupported URL Type "workspace:": workspace:^
pret-a-porter commented 2 years ago

@cubucul thank you for reporting! Try 1.6.0-beta.1 please

cubucul commented 2 years ago

@pret-a-porter beta 1 installed without error, but app compile with problem:

ERROR in ./node_modules/@eo-locale/react/lib/index.js 3:0-64

Module not found: Error: Package path ./server.js is not exported from package /my-app/node_modules/react-dom (see exports field in /my-app/node_modules/react-dom/package.json)