Closed ErikSin closed 1 year ago
eslint-plugin-flowtype
incompatible - was removedreact-intl-formatted-duration
required peer dependency react-intl
>=v4 . Upgraded react-intl
from 3.2.4 to 4.7.6. Breaking API changes in react-intl
do not apply to anything in our codebasebetter-sqlite3
, when running electron-rebuild
throwing "error: no member named 'CreationContext' in 'v8::Object'", related to this closed issue. In mapeo-map-server, better-sqlite3
needs to be upgraded to v8.0.0. This drops support for node 12, which may be an issue for mapeo-mobile? I stubbed out mapeo-map-server
temporarily.npm run dev
script electron . --debug
was replaced with electron . --inspect
Work started on this branch
after pairing with Erik yesterday, the following issues were addressed:
another pairing session with Erik today. the following issues were addressed:
import * as remote
syntaxthe app runs locally now! was even able to sync a small amount of data with my phone.
next steps are more thorough testing and figuring out what's broken.
separately, wondering if the map server directory background-maps/
should not be living in the user data directory when in development mode (instead be in temp-resources/
), or if that's okay. could be pretty catastrophic for people who use the map server in production mapeo and also develop Mapeo locally, which is an almost-zero number of people right now 😅
after playing around with Vite and some vite electron plugins, thinking that this issue should be split into two items:
To my knowledge, upgrading Electron can be done independently without requiring major changes to our frontend setup. For the sake of better isolating these major changes, doing them separately will be easier to manage and review.
Additionally, thinking that Vite may not be the option we want to use after my explorations. There's some deceptive complexity with it (maybe because of Electron) that I haven't fully managed to wrap my head around. Wondering if we can achieve 80% with just using Rollup and relevant plugins with the goal of creating a setup that
at the expense of some of the dev experience that Vite provides (when it works). Something to discuss in more detail
Closing ticket, and replacing with #726
To be compatible with the new
Mapeo Core
, the Electron version needs to be upgraded to version 22.0.3As well, the current bundler (webpack) can be replaced with Vite-Electron.
Requirements
This electron version requires node v 16.17.1