Draft API/usage example for full example workflow for Bayesian sampling in parameter space

We need to follow in the footsteps of #3 and generate what the API and a usage example for our full workflow for the immediate parameter sampling problem we are heading towards. This involves, as I understand it, taking a specified set of data, a starting set of parameters, and a prior, and generating proposed modulations to those parameters, computing properties, comparing with experiment, updating the posterior, etc.
Presumably this would start by generating some sample code around that from https://github.com/jchodera/open-forcefield-tools/blob/master/README.md to expand the example by doing things like:

read parameters
initialize prior
generate new parameter proposals
evaluate property with those parameters
accept or reject
etc.

So for example, how would we expand this code below to do the above?
thermoml_keys = ['10.1016/j.jct.2005.03.012', ...]
dataset = ThermoMLDataset(thermoml_keys)
# Filter the dataset to include only molar heat capacities measured between 280-350 K
dataset.filter(ePropName='Excess molar enthalpy (molar enthalpy of mixing), kJ/mol') # filter to retain only this property name
dataset.filter(VariableType='eTemperature', min=280*unit.kelvin, max=350*kelvin) # retain only measurements with `eTemperature` in specified range
# Load an initial parameter set
parameter_set = [ SMIRFFParameterSet('smarty-initial.xml') ]
# Compute physical properties for these measurements
estimator = PropertyEstimator(nworkers=10) # NOTE: multiple backends will be supported in the future
computed_properties = estimator.computeProperties(dataset, parameter_set)
# Write out statistics about errors in computed properties
for (computed, measured) in (computed_properties, dataset):
   property_unit = measured.value.unit
   print('%24s : experiment %8.3f (%.3f) | calculated %8.3f (%.3f) %s' % (measured.value / property_unit, measured.uncertainty / property_unit, computed.value / property_unit, computed.uncertainty / property_unit, str(property_unit))

In today's call, @jchodera said @maxentile, @pgrinaway and @jchodera would draft this up and I should create an issue for it. :)

@mrshirts - you might have input on this as well... ?

We probably want to handle the units more transparently than in the print line given at the end.  Though I units should be able to handle that anyway IIRC.
Other than starting with density as they example, this seems reasonable.

We probably want to handle the units more transparently than in the print line given at the end. Though I units should be able to handle that anyway IIRC.

Can you elaborate?
I was planning on using simtk.unit.Quantity() objects to represent measurements. These have a value and a unit attached, and take care of standard unit conversions for you.
These lines
   property_unit = measured.value.unit
   print('%24s : experiment %8.3f (%.3f) | calculated %8.3f (%.3f) %s' % (measured.value / property_unit, measured.uncertainty / property_unit, computed.value / property_unit, computed.uncertainty / property_unit, str(property_unit))

are just a convenient idiom for printing the measured and computed values in the same units.
You can just as easily use print(measured) and it will give you something like 4.73242 kilojoules/mole, but there is no guarantee about how many digits it will print or whether print(computed) will give you the same units.

Other than starting with density as they example,

Do you mean "we should use density as the simplest example"?

Yes, that should have been "use density as the example" -- and yes, the first one.

Potentially a print wrapper that would take care of the unit formatting. Maybe that's too much of a pain.  I was thinking of rather than dividing, using built in functions like
measured.value._value (for short) or
measured.value.value_in_units(unit(measured.value))
to be more explicit about what the conversion was doing.  But all pretty minor things.
(measured.value / property_unit, measured.uncertainty / property_unit, computed.value / property_unit, computed.uncertainty / property_unit, str(property_unit))

Potentially a print wrapper that would take care of the unit formatting. Maybe that's too much of a pain. I was thinking of rather than dividing, using built in functions like..
to be more explicit about what the conversion was doing. But all pretty minor things.

The simtk.unit package is mature and contains several thousand of lines of code.  I'm not going to write or rewrite it---we're just going to use it here.
The alternative is to use pint, but it isn't as readily compatible with OpenMM, which we need right now.
The API example wasn't meant to show off any sort of pretty-printing. It's just to show you how you would access data.

Yes, @mrshirts - have you used simtk.unit? I'm fairly sure it solves the problem you're talking about - or if not, you're going to have to be a good deal more explicit about the problem.

Yes, @mrshirts - have you used simtk.unit? I'm fairly sure it solves the problem you're talking about

Well, I've used it extensively throughout InterMol - I'm just pointing out that dividing by units is messier and less obvious than just using the existing functionality already in simtk.unit, and gave examples how it would be done using the existing functionality.

You're right, we could use the value_in_units_of() functionality. That is probably clearer. I can update the docs.

Thanks. @mrshirts, I think we both misunderstood what you were asking for.
On Mon, Jun 27, 2016, 10:31 PM John Chodera<EMAIL_ADDRESS>wrote:

You're right, we could use the value_in_units_of() functionality. That is
probably clearer. I can update the docs.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/open-forcefield-group/open-forcefield-tools/issues/6#issuecomment-228952330,
or mute the thread
https://github.com/notifications/unsubscribe/AGzUYdRVTDZJ0_UWkruQj0p7cuI2gOd4ks5qQLGrgaJpZM4I7RmB
.

As noted in today's call, we would be doing things like this:

sampling in parameter space with fixed atom types (SMIRKS)
introducing new (child) SMIRKS with modified parameters

Our initial tests will be on modification of bond, angle, and torsional parameters, because of the gas phase data we'll be testing on. We'll begin with bonds.
The procedure as JDC described will be something like this:

Propose metropolis move in bond equilibrium length and force constant
accept/reject with simplest approach possible

Initially we will have to work on the SMIRFF XML representation of the parameters in order to do this, until we sort out a Python representation of the parameters (see https://github.com/open-forcefield-group/smarty/issues/68).

@maxentile - hopefully congratulations are in order. @jchodera was saying you would have advanced a couple days ago and would be wanting to get started on this and related issues right after advancement? I just wanted to bring it to the surface again.


Update serverspec tests & fix rabbitmq ssl in ubuntu 12.04

This updates all the serverspec tests to v2 syntax.
Once updated it became clear that the 12.04 tests were failing. This was because the 12.04 erlang is vulnerable to the poodle exploit which causes rabbitmq to disable its SSL listener. For that reason I have set versions of ubuntu prior to trusty to use the ESL erlang packages which appear to work. In order to achieve that I have included chef-sugar so that I could use the ubuntu_before_trusty? conditional.
Also fixed the URLs in the metadata to point to chef supermarket not the old community site.

Please please please merge this!

Merged! Thank you :+1:


Upgrade to Expo 46

Upgrade the Mobile App (/frontend) to Expo 46. Relevant details can be found in the announcement blog post:
https://blog.expo.dev/expo-sdk-46-c2a1655f63f7

While I'm trying launch the app on Expo Go on IOS, it shows that I have to use newer version of Expo SDK 46 or older version of Expo Go. Could help me is there any way to use older version of Expo Go maybe on Android or IOS (before this issue update)?
Thanks so much!

Hey @Bardreamaster, thanks for reaching out. Glad to hear you're checking out the app.
We're currently in the middle of working toward a major release that upgrades Expo and includes new features.
In the past week or so we've been pleasantly surprised to see activity on here. Prior to this, it has been fairly quiet with no open-source contributions. So we've been pretty thrilled to see some new issues and even PRs from the community.
In light of this, we're looking into a shorter-term, interim release to help smooth out some of the rough edges here.
To answer your question, Expo has a fairly rapid release cadence, and as such old versions get deprecated and lose support for Expo Go.
If you really just want to run it in the Expo Go app right now, you should check out what's on the branch used by #24. Just be aware you may encounter a few bugs that we're in the process of addressing at the moment.
If you want to stick with what's on the stable branch, you should still be able to run the app on the iOS simulator. Expo does still have archived documentation for the CLI supported by Expo 45: https://docs.expo.dev/archive/expo-cli/#expo-runios
If you're really intent on testing it out on your device now with the stable branch, this involves some configuration with Apple and XCode, but they do allow you to create an ad-hoc provisioning profile to load it onto a your device. Just be aware that this may initially seem a bit complicated if you haven't done it before, and will take some understanding of how to get it all setup.

And Back to the question, I'm trying to find to way to make a mobile APP for our forum(Discourse distance is online but on building with useful contents), but it's not the most important now for our project. So I'd like to stick with the stable branch. And for my own I'm trying to run the APP on my own physical device to test the working pipeline, which are preparing for further development.

It's understandable to want to stick with the stable branch. In that case, you may need to dig into creating an ad-hoc provisioning profile with Apple and XCode to load it onto your device.
If you can tolerate running it in the iOS simulator, that would be much simpler.
In the meantime, we'll likely create an alpha branch in the next week or two—for our upcoming release (date to be determined) which would work with Expo Go, and you're welcome to check that out as well.

I have tried to use branch alpha-v2. I could config the Prose local correct, but when the fronted APP running there's a ERROR I can't resolve(I can see some correct content in my mobile device but there's warning on ExpoGo and error on console of fronted APP). For the error message, I've checked the document metioned. It looks that there missed a config para to link for IOS so that the APP couldn't find DatePickerIOS, but I do not know clearly. Hope you can help.
And this is my test environment:

Prose Locally build from alpha-v2 on Linux. api/.env with pointed Discourse address, PROSE_PORT 7761.
Discourse point to an exist instance.
fronted APP build from alpha-v2. Config.ts with Proseurl local IP.
ExpoGo on IOS latest.

I'll also try on Andriod later.
Console log is attached below:
yarn run v1.22.19
warning ../../package.json: No license field
$ expo start
Starting project at /home/bot/lexicon/frontend
Starting Metro Bundler
› Metro waiting on exp://<IP_ADDRESS>:19000
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)

› Press a │ open Android
› Press w │ open web

› Press r │ reload app
› Press m │ toggle menu

› Press ? │ show all commands

Logs for your project will appear below. Press Ctrl+C to exit.
iOS Bundling complete 3788ms
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
 WARN  Linking requires a build-time setting `scheme` in the project's Expo config (app.config.js or app.json) for production apps, if it's left blank, your app may crash. The scheme does not apply to development in the Expo client but you should add it as soon as you start working with Linking to avoid creating a broken build. Learn more: https://docs.expo.dev/guides/linking/
AppNavigator@http://<IP_ADDRESS>:19000/index.bundle:166026:53
RequestError@http://<IP_ADDRESS>:19000/index.bundle:164210:25
ModalProvider@http://<IP_ADDRESS>:19000/index.bundle:259572:24
OngoingLikedTopicProvider@http://<IP_ADDRESS>:19000/index.bundle:259655:24
ThemeProvider@http://<IP_ADDRESS>:19000/index.bundle:169282:24
AppearanceProvider@http://<IP_ADDRESS>:19000/index.bundle:169161:24
RNCSafeAreaProvider
SafeAreaProvider@http://<IP_ADDRESS>:19000/index.bundle:119853:24
StorageProvider@http://<IP_ADDRESS>:19000/index.bundle:154756:43
ApolloProvider@http://<IP_ADDRESS>:19000/index.bundle:148662:20
App
ExpoRoot@http://<IP_ADDRESS>:19000/index.bundle:119359:22
RCTView
View
DevAppContainer@http://<IP_ADDRESS>:19000/index.bundle:119046:36
RCTView
View
AppContainer@http://<IP_ADDRESS>:19000/index.bundle:80670:36
main(RootComponent)@http://<IP_ADDRESS>:19000/index.bundle:87045:28
 ERROR  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `PostList`.
    in ReanimatedFlatlist (created by PostList)
    in PostList (created by Home)
    in RCTView (created by View)
    in View (created by Home)
    in Home (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by BottomTabView)
    in RCTView (created by View)
    in View (created by Screen)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by Screen)
    in Screen (created by BottomTabView)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by BottomTabView)
    in RNSScreenNavigationContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by BottomTabView)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by BottomTabView)
    in BottomTabView (created by BottomTabNavigator)
    in Unknown (created by BottomTabNavigator)
    in BottomTabNavigator (created by TabNavigator)
    in TabNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RCTView (created by View)
    in View (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by StackNavigator)
    in StackNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RCTView (created by View)
    in View (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by RootStackNavigator)
    in RootStackNavigator (created by AppNavigator)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by AppNavigator)
    in AppNavigator (created by App)
    in RequestError (created by App)
    in ModalProvider (created by App)
    in OngoingLikedTopicProvider (created by App)
    in ThemeProvider (created by App)
    in AppearanceProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in StorageProvider (created by App)
    in ApolloProvider (created by App)
    in App (created by ExpoRoot)
    in ExpoRoot
    in RCTView (created by View)
    in View (created by AppContainer)
    in DevAppContainer (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
⠼ Stopping server^C

@Kinostrome  And I'v tried on Andriod. There's still an ERROR. Is there plugin I shouldn't use?
This is the ERROR log:
 ERROR  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `PostList`.
    in ReanimatedFlatlist (created by PostList)
    in PostList (created by Home)
    in RCTView (created by View)
    in View (created by Home)
    in Home (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by BottomTabView)
    in RCTView (created by View)
    in View (created by Screen)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by Screen)
    in Screen (created by BottomTabView)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by BottomTabView)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by BottomTabView)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by BottomTabView)
    in BottomTabView (created by BottomTabNavigator)
    in Unknown (created by BottomTabNavigator)
    in BottomTabNavigator (created by TabNavigator)
    in TabNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by StackNavigator)
    in StackNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by RootStackNavigator)
    in RootStackNavigator (created by AppNavigator)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by AppNavigator)
    in AppNavigator (created by App)
    in RequestError (created by App)
    in ModalProvider (created by App)
    in OngoingLikedTopicProvider (created by App)
    in ThemeProvider (created by App)
    in AppearanceProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in StorageProvider (created by App)
    in ApolloProvider (created by App)
    in App (created by ExpoRoot)
    in ExpoRoot
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent)

@Kinostrome And I'v tried on Andriod. There's still an ERROR. Is there plugin I shouldn't use?
This is the ERROR log:
 ERROR  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `PostList`.
    in ReanimatedFlatlist (created by PostList)
    in PostList (created by Home)
    in RCTView (created by View)
    in View (created by Home)
    in Home (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by BottomTabView)
    in RCTView (created by View)
    in View (created by Screen)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by Screen)
    in Screen (created by BottomTabView)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by BottomTabView)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by BottomTabView)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by BottomTabView)
    in BottomTabView (created by BottomTabNavigator)
    in Unknown (created by BottomTabNavigator)
    in BottomTabNavigator (created by TabNavigator)
    in TabNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by StackNavigator)
    in StackNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RNGestureHandlerRootView (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by RootStackNavigator)
    in RootStackNavigator (created by AppNavigator)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by AppNavigator)
    in AppNavigator (created by App)
    in RequestError (created by App)
    in ModalProvider (created by App)
    in OngoingLikedTopicProvider (created by App)
    in ThemeProvider (created by App)
    in AppearanceProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in StorageProvider (created by App)
    in ApolloProvider (created by App)
    in App (created by ExpoRoot)
    in ExpoRoot
    in RCTView (created by View)
    in View (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent)

Hey @Bardreamaster, thank you for testing alpha-v2.
Regarding the issue "ERROR Warning: Function components cannot be given refs. Attempts to access this ref will fail," it occurs due to an issue in react-native-reanimated as mentioned in this GitHub issue.
To resolve this error, we need to upgrade the version of react-native-reanimated to at least 2.10.0. Fortunately, this version is also compatible with expo 47. Therefore, we need to upgrade both expo to version 47 and react-native-reanimated to resolve this error.

Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS

For the node module problem, have you already tried removing the node_modules directory before running yarn in the frontend folder?

I have tried to use branch alpha-v2. I could config the Prose local correct, but when the fronted APP running there's a ERROR I can't resolve(I can see some correct content in my mobile device but there's warning on ExpoGo and error on console of fronted APP). For the error message, I've checked the document metioned. It looks that there missed a config para to link for IOS so that the APP couldn't find DatePickerIOS, but I do not know clearly. Hope you can help.
And this is my test environment:

Prose Locally build from alpha-v2 on Linux. api/.env with pointed Discourse address, PROSE_PORT 7761.
Discourse point to an exist instance.
fronted APP build from alpha-v2. Config.ts with Proseurl local IP.
ExpoGo on IOS latest.

I'll also try on Andriod later.
Console log is attached below:
yarn run v1.22.19
warning ../../package.json: No license field
$ expo start
Starting project at /home/bot/lexicon/frontend
Starting Metro Bundler
› Metro waiting on exp://<IP_ADDRESS>:19000
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)

› Press a │ open Android
› Press w │ open web

› Press r │ reload app
› Press m │ toggle menu

› Press ? │ show all commands

Logs for your project will appear below. Press Ctrl+C to exit.
iOS Bundling complete 3788ms
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
 WARN  Linking requires a build-time setting `scheme` in the project's Expo config (app.config.js or app.json) for production apps, if it's left blank, your app may crash. The scheme does not apply to development in the Expo client but you should add it as soon as you start working with Linking to avoid creating a broken build. Learn more: https://docs.expo.dev/guides/linking/
AppNavigator@http://<IP_ADDRESS>:19000/index.bundle:166026:53
RequestError@http://<IP_ADDRESS>:19000/index.bundle:164210:25
ModalProvider@http://<IP_ADDRESS>:19000/index.bundle:259572:24
OngoingLikedTopicProvider@http://<IP_ADDRESS>:19000/index.bundle:259655:24
ThemeProvider@http://<IP_ADDRESS>:19000/index.bundle:169282:24
AppearanceProvider@http://<IP_ADDRESS>:19000/index.bundle:169161:24
RNCSafeAreaProvider
SafeAreaProvider@http://<IP_ADDRESS>:19000/index.bundle:119853:24
StorageProvider@http://<IP_ADDRESS>:19000/index.bundle:154756:43
ApolloProvider@http://<IP_ADDRESS>:19000/index.bundle:148662:20
App
ExpoRoot@http://<IP_ADDRESS>:19000/index.bundle:119359:22
RCTView
View
DevAppContainer@http://<IP_ADDRESS>:19000/index.bundle:119046:36
RCTView
View
AppContainer@http://<IP_ADDRESS>:19000/index.bundle:80670:36
main(RootComponent)@http://<IP_ADDRESS>:19000/index.bundle:87045:28
 ERROR  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `PostList`.
    in ReanimatedFlatlist (created by PostList)
    in PostList (created by Home)
    in RCTView (created by View)
    in View (created by Home)
    in Home (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by BottomTabView)
    in RCTView (created by View)
    in View (created by Screen)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by Screen)
    in Screen (created by BottomTabView)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by BottomTabView)
    in RNSScreenNavigationContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by BottomTabView)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by BottomTabView)
    in BottomTabView (created by BottomTabNavigator)
    in Unknown (created by BottomTabNavigator)
    in BottomTabNavigator (created by TabNavigator)
    in TabNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RCTView (created by View)
    in View (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by StackNavigator)
    in StackNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RCTView (created by View)
    in View (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by RootStackNavigator)
    in RootStackNavigator (created by AppNavigator)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by AppNavigator)
    in AppNavigator (created by App)
    in RequestError (created by App)
    in ModalProvider (created by App)
    in OngoingLikedTopicProvider (created by App)
    in ThemeProvider (created by App)
    in AppearanceProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in StorageProvider (created by App)
    in ApolloProvider (created by App)
    in App (created by ExpoRoot)
    in ExpoRoot
    in RCTView (created by View)
    in View (created by AppContainer)
    in DevAppContainer (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
⠼ Stopping server^C

For the node module problem, have you already tried removing the node_modules directory before running yarn in the frontend folder?

I have tried to use branch alpha-v2. I could config the Prose local correct, but when the fronted APP running there's a ERROR I can't resolve(I can see some correct content in my mobile device but there's warning on ExpoGo and error on console of fronted APP). For the error message, I've checked the document metioned. It looks that there missed a config para to link for IOS so that the APP couldn't find DatePickerIOS, but I do not know clearly. Hope you can help.
And this is my test environment:

Prose Locally build from alpha-v2 on Linux. api/.env with pointed Discourse address, PROSE_PORT 7761.
Discourse point to an exist instance.
fronted APP build from alpha-v2. Config.ts with Proseurl local IP.
ExpoGo on IOS latest.

I'll also try on Andriod later.
Console log is attached below:
yarn run v1.22.19
warning ../../package.json: No license field
$ expo start
Starting project at /home/bot/lexicon/frontend
Starting Metro Bundler
› Metro waiting on exp://<IP_ADDRESS>:19000
› Scan the QR code above with Expo Go (Android) or the Camera app (iOS)

› Press a │ open Android
› Press w │ open web

› Press r │ reload app
› Press m │ toggle menu

› Press ? │ show all commands

Logs for your project will appear below. Press Ctrl+C to exit.
iOS Bundling complete 3788ms
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
 WARN  Linking requires a build-time setting `scheme` in the project's Expo config (app.config.js or app.json) for production apps, if it's left blank, your app may crash. The scheme does not apply to development in the Expo client but you should add it as soon as you start working with Linking to avoid creating a broken build. Learn more: https://docs.expo.dev/guides/linking/
AppNavigator@http://<IP_ADDRESS>:19000/index.bundle:166026:53
RequestError@http://<IP_ADDRESS>:19000/index.bundle:164210:25
ModalProvider@http://<IP_ADDRESS>:19000/index.bundle:259572:24
OngoingLikedTopicProvider@http://<IP_ADDRESS>:19000/index.bundle:259655:24
ThemeProvider@http://<IP_ADDRESS>:19000/index.bundle:169282:24
AppearanceProvider@http://<IP_ADDRESS>:19000/index.bundle:169161:24
RNCSafeAreaProvider
SafeAreaProvider@http://<IP_ADDRESS>:19000/index.bundle:119853:24
StorageProvider@http://<IP_ADDRESS>:19000/index.bundle:154756:43
ApolloProvider@http://<IP_ADDRESS>:19000/index.bundle:148662:20
App
ExpoRoot@http://<IP_ADDRESS>:19000/index.bundle:119359:22
RCTView
View
DevAppContainer@http://<IP_ADDRESS>:19000/index.bundle:119046:36
RCTView
View
AppContainer@http://<IP_ADDRESS>:19000/index.bundle:80670:36
main(RootComponent)@http://<IP_ADDRESS>:19000/index.bundle:87045:28
 ERROR  Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `PostList`.
    in ReanimatedFlatlist (created by PostList)
    in PostList (created by Home)
    in RCTView (created by View)
    in View (created by Home)
    in Home (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by BottomTabView)
    in RCTView (created by View)
    in View (created by Screen)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by Screen)
    in Screen (created by BottomTabView)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by BottomTabView)
    in RNSScreenNavigationContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by BottomTabView)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by BottomTabView)
    in BottomTabView (created by BottomTabNavigator)
    in Unknown (created by BottomTabNavigator)
    in BottomTabNavigator (created by TabNavigator)
    in TabNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RCTView (created by View)
    in View (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by StackNavigator)
    in StackNavigator (created by SceneView)
    in StaticContainer
    in EnsureSingleNavigator (created by SceneView)
    in SceneView (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View (created by CardContainer)
    in RCTView (created by View)
    in View
    in CardSheet (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by PanGestureHandler)
    in PanGestureHandler (created by PanGestureHandler)
    in PanGestureHandler (created by Card)
    in RCTView (created by View)
    in View (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Card)
    in RCTView (created by View)
    in View (created by Card)
    in Card (created by CardContainer)
    in CardContainer (created by CardStack)
    in RNSScreen (created by AnimatedComponent)
    in AnimatedComponent
    in AnimatedComponentWrapper (created by Screen)
    in MaybeFreeze (created by Screen)
    in Screen (created by MaybeScreen)
    in MaybeScreen (created by CardStack)
    in RNSScreenContainer (created by ScreenContainer)
    in ScreenContainer (created by MaybeScreenContainer)
    in MaybeScreenContainer (created by CardStack)
    in RCTView (created by View)
    in View (created by Background)
    in Background (created by CardStack)
    in CardStack (created by HeaderShownContext)
    in RCTView (created by View)
    in View (created by SafeAreaInsetsContext)
    in SafeAreaProviderCompat (created by StackView)
    in RCTView (created by View)
    in View (created by GestureHandlerRootView)
    in GestureHandlerRootView (created by StackView)
    in StackView (created by StackNavigator)
    in Unknown (created by StackNavigator)
    in StackNavigator (created by RootStackNavigator)
    in RootStackNavigator (created by AppNavigator)
    in EnsureSingleNavigator
    in BaseNavigationContainer
    in ThemeProvider
    in NavigationContainerInner (created by AppNavigator)
    in AppNavigator (created by App)
    in RequestError (created by App)
    in ModalProvider (created by App)
    in OngoingLikedTopicProvider (created by App)
    in ThemeProvider (created by App)
    in AppearanceProvider (created by App)
    in RNCSafeAreaProvider (created by SafeAreaProvider)
    in SafeAreaProvider (created by App)
    in StorageProvider (created by App)
    in ApolloProvider (created by App)
    in App (created by ExpoRoot)
    in ExpoRoot
    in RCTView (created by View)
    in View (created by AppContainer)
    in DevAppContainer (created by AppContainer)
    in RCTView (created by View)
    in View (created by AppContainer)
    in AppContainer
    in main(RootComponent)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
Error: Unable to resolve module ./Libraries/Components/DatePicker/DatePickerIOS from /home/bot/lexicon/frontend/node_modules/react-native/index.js:

None of these files exist:
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  * node_modules/react-native/Libraries/Components/DatePicker/DatePickerIOS/index(.native|.native.ts|.ts|.native.tsx|.tsx|.native.js|.js|.native.jsx|.jsx|.native.json|.json|.native.svg|.svg)
  15 | import typeof ActivityIndicator from './Libraries/Components/ActivityIndicator/ActivityIndicator';
  16 | import typeof Button from './Libraries/Components/Button';
> 17 | import typeof DatePickerIOS from './Libraries/Components/DatePicker/DatePickerIOS';
     |                                   ^
  18 | import typeof DrawerLayoutAndroid from './Libraries/Components/DrawerAndroid/DrawerLayoutAndroid';
  19 | import typeof FlatList from './Libraries/Lists/FlatList';
  20 | import typeof Image from './Libraries/Image/Image';
    at ModuleResolver.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:136:15)
    at DependencyGraph.resolveDependency (/home/bot/lexicon/frontend/node_modules/metro/src/node-haste/DependencyGraph.js:231:43)
    at Object.resolve (/home/bot/lexicon/frontend/node_modules/metro/src/lib/transformHelpers.js:129:24)
    at resolve (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:396:33)
    at /home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:412:26
    at Array.reduce (<anonymous>)
    at resolveDependencies (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:411:33)
    at processModule (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:140:31)
    at async addDependency (/home/bot/lexicon/frontend/node_modules/metro/src/DeltaBundler/traverseDependencies.js:230:18)
    at async Promise.all (index 10)
⠼ Stopping server^C

For the node module problem, have you already tried removing the node_modules directory before running yarn in the frontend folder?

For the node module problem, have you already tried removing the node_modules directory before running yarn in the frontend folder?

@starjustice Thanks for your reply.
Yes, I'v tried. My react-native version is<EMAIL_ADDRESS>And iOS version is 16.4.1.
As you said I can run on Android with warning which only miss some portrait avatar. But on iOS there's still node_model ERROR.
Thanks a lot.

Hey @Bardreamaster, I already tried running the app on iOS version 16.4, and it's showing a node_module error. After investigating this issue, I found that it's a known issue in React Native (https://github.com/facebook/react-native/issues/36794).
To resolve this error, the easier solution is to use an older iOS version. I have tested it with version 16.2, and it works fine without the node_module error.
However, as a long-term solution, we have added a roadmap to switch to Hermes based on the workaround mentioned in this issue thread (https://github.com/facebook/react-native/issues/36794#issuecomment-1500880284).
Hopefully, this will solve your issue.

Thanks for letting us know about this issue @Bardreamaster. And thank you @starjustice for getting to the bottom of it.
Like @starjustice mentioned, we want to resolve this issue by upgrading to Hermes (since we were planning to anyway). It is tracked on our roadmap with #29.

Thanks for letting us know about this issue @Bardreamaster. And thank you @starjustice for getting to the bottom of it.
Like @starjustice mentioned, we want to resolve this issue by upgrading to Hermes (since we were planning to anyway). It is tracked on our roadmap with #29.

Got it. Thanks for reply. I'll keep following your great project! Thanks again.


In events module: allow choice in how the event server is implemented (v2)

This is version 2, implementing suggestions by @KennethNielsen and @ghcs27. See #575 for discussion.
I propose to update this pull request to address #590 [DONE].
Let me know if there is anything else I should incorporate.

@ghcs27 Thank you for the review! Much appreciated. Comments above.

@ghcs27 I think the commit I've just made addresses what we've discussed. Errors on autorenewal are handled with warnings, while those on other renewal are handled by raising an exception. I did this before I looked at your last alternative. We can go with that - I'd just need to look into how to achieve the same in twisted.

@ghcs27 Thank you! All comments look good. I'll incorporate in the next commits.

I made a diagram of the events.py structure:
EventsStructure.xml

@ghcs27 I have a few questions:
(1) There is nothing to stop a subscription from being subscribed multiple times. This in turn means multiple attempts to unsubscribe it automatically at exit will be registered and, if autorenew is set to true, multiple autorenew threads will be created. I was slightly surprised to discover this. However, perhaps it's generally OK. It seems the sonos system still sends only one copy of the relevant event to the event server, even if it receives a second redundant subscription request. Subscription.unsubscribe will fail silently if the Subscription has already been unsubscribed. Therefore, I propose to leave this behaviour mostly as it is, save that a subsequent call to Subscription.unsubscribe should stop the autorenew thread and if (a) autorenew was previously running or (b) autorenew is now requested, start autorenew  with the new timeout details. Does that sound right?
(2) What do you think should happen to a subscription if an HTTP 'SUBSCRIBE' request fails, whether on subscription or on autorenewal? Should it be cancelled (i.e. the _has_been_unsubscribed flag will be set to True)? If not, should autorenewal be stopped, if the failure occurred on an autorenew attempt, so that the Subscription doesn't continue attempting to autorenew indefinitely?
(3) A similar question arises where a SoCoException occurs on autorenewal. Presumably the  autorenew thread should be stopped?

(1) Since we don't even allow a Subscription to be resubscribed after unsubscribe, I don't think we should allow subscribing multiple times. I would guess subscribing a second time will be a bug more often than a feature of the calling code, so it's better to let it fail.
(2) I will take a fail-fast stance on this as well: The (re)subscription has failed, which means that we might not receive events anymore. Therefore, I'd cancel the subscription (and raise an exception).
(3) Same as above, cancel the subscription and the autorenew thread with it.

@ghcs27 I'm happy with (2) and (3).
As to (1), having thought about it further, I think this may be too strict. The sonos system seems happy to receive subsequent 'SUBSCRIBE' requests and they have a purpose, because the timeout is updated each time a 'SUBSCRIBE' request is sent. Indeed, this is what happens upon autorenewal. A further 'SUBSCRIBE' request is sent to the sonos system when 15% of the requested duration is left, at which point it is reset to 100%.

It is totally legitimate if you want to allow multiple calls to subscribe(). I'm a proponent of fail-fast systems, but that doen't mean you have to adjust your code for that.

@ghcs27 Thank you again for your help. You'll see multiple attempts to subscribe will fail, following your original suggestion. On reflection, I think that's the right outcome.

Please could anyone willing to do so help test this code? If you have an app using soco 0.14, you need only copy the following updated or new files from this PR into the directory with your soco python files and everything should work:
config.py
events.py
events_base.py
events_twisted.py
services.py
If you're willing to test events_twisted, all the better. There's an example showing how to do this at the top of the events_twisted file.

Hi @relevitt  - well done on all the work in this.
I can give it a test but not until next week if that helps
Cheers David

Hi @DPH - that would be great, yes please.

Hi @relevitt - great work.
Have tested under both twisted and normal version of events on Python 2.7 and Python 3,6 on Windows and all works well. So looks ready to go.
A few observations - which may be to do with my understanding of Twisted:

installing twisted on python 2.7 is simple with pip. On 3.6 this doesn't work and I eventually installed it using the wheel (just followed on line advice but was not sure!) If this is the case we should include documentation (or a link to) how to install twisted on python 3. Or better still get Twisted to make pip work!

Documentation would also be useful to guide people as to which version of events to use. What are the benefits / downsides with each?

I also tried to use the twisted version in a thread, struggled passing parameters to the twisted callbacks, but even when I overcame this with a class, it appears twisted must be run in the main thread.
'builtins.ValueError: signal only works in main thread'  If this is true we should again document this so people don't get stuck.

finally it would be worth having a couple of examples in the examples directory - I know there are the basic examples in the code, but lets add them to the examples and maybe a few more to the examples to help people. I'm happy to do this if you want.

Well done for your hard work and perseverance - I have been following the comments with great interest.
Cheers David

@DPH Great news that it worked and thank you for testing. I'm happy to do as you've suggested. What's the best place for documentation? Should I supplement docstrings in .py files or should this go somewhere else?

@relevitt we have a doc directory so it may warrant a short document in there on events rather than overloading the code - I am not clear how documents in /doc get included in the online documentation  https://soco.readthedocs.io/en/latest/
@KennethNielsen can you advise on the right approach here please.
Cheers David

@DPH Thank you. I'v looked over the the documentation and what's in the soco/doc tree. There's already an "In depth" topics" section, with a subsection on "Events" that links to events.rst. Subject to other thoughts and comments, I propose to create two more rst files, one with additional examples and the other with more information on events_twisted, and link to them from events.rst.

Sorry for bothering you with this. I'm not sure using the _wrap methods is the right way to deal with exceptions and concurrency, since it makes the control flow harder to understand (especially when mixed with exceptions). The reason I'm bringing this up is that this code will have to be maintained, and you and I won't always be around to know how it works. I know this took quite a bit of work, but it doesn't seem right to me.
So what I'm asking: Is there another way to archieve a similiar result without the wrappers?

I'll have a look next week.

This seems a prime example of "perfect is the enemy of good".
Getting it merged would allow many more people to participate in moving it towards perfect.

We've been pushing this PR for two sprints now already. Can somebody summarize what needs to be done to get it merged?

@stefankoegl I think all that is needed is for me to update this PR to be compatible with release 0.17. I aim to do this over the next week or so, if I'm not out of time, and then I believe it can be included in 0.17. @ghcs27 has also raised a question, which is stylistic rather than functional. I'll have a look at that too, while updating the PR. If I'm too late for 0.17, please let me know, because then I'll skip 0.17 and go for 0.18.

@stefankoegl I've updated this PR to take account of commits since 0.15. It should be good to go now. Any questions, please let me know.

@stefankoegl The Travis build failed because of "W504 line break after binary operator", but some of these warnings relate to files I haven't changed, so I don't know what to do about it.

Hi @relevitt
Thanks for your work on the new version and for your incredible patience. 0.17 was just release, which means that is the time to merge large new features. I can see that @ghcs27 already reviewed and it seems all (or at least most) issues have been addressed, so now I think we should just get it merged and then we may refine it more later, when it is in the codebase and people start using.
This can still be merged cleanly, but the Travis build fails (I think due to some new lint version, which the rest of the codebase was updated against), so I would ask you if I can get you to rebase and fix any remaining lint issues in the code that is new to this PR and then I will merge immediately after. I know this is kind of short notice, but I will be working on SoCo tonight, so if you happen to have a little time we could get it merged by today.
If you would prefer, I can also do the rebase and remaining lint issue ;)

Hi @KennethNielsen, thanks you so much. I'll fix the lint issues as soon as I can this evening.

@relevitt awesome, but remember, it should probably be done on top of a rebase, otherwise we are going to be in merge hell.

@KennethNielsen I think it's ready to go.

Done. Thanks for you contribution and your patience. This change should already be mentioned in the release notes from earlier #665, but please check if the info there is correct, just in case.


ckpt download error

what error? I can download the weights normally.
Maybe need to use vpn?

Sorry, my mistake, I forgot to make the hugging face repo public.


chore: repository overhaul

Codecov Report

:exclamation: No coverage uploaded for pull request base (main@6653d64). Click here to learn what that means.
The diff coverage is n/a.

@@           Coverage Diff            @@
##             main        #1   +/-   ##
========================================
  Coverage        ?   100.00%
========================================
  Files           ?         1
  Lines           ?         1
  Branches        ?         0
========================================
  Hits            ?         1
  Misses          ?         0
  Partials        ?         0

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more


[Snyk] Upgrade @defi-wonderland/smock from 2.2.0 to 2.3.0

Snyk has created this PR to upgrade @defi-wonderland/smock from 2.2.0 to 2.3.0.
As this is a private repository, Snyk-bot does not have access. Therefore, this PR has been created automatically, but appears to have been created by a real user.
:sparkles: Snyk has automatically assigned this pull request, set who gets assigned.
:information_source: Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.

The recommended version is 1 version ahead of your current version.
The recommended version was released 21 days ago, on 2022-09-08.

Release notes

Package name: @defi-wonderland/smock

2.3.0 - 2022-09-08No content.

2.2.0 - 2022-07-13No content.

    from @defi-wonderland/smock GitHub release notes

Commit messages

Package name: @defi-wonderland/smock

9a2b350 chore(release): 2.3.0 (#157)

Compare

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
👩💻 Set who automatically gets assigned
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Pull Request Test Coverage Report for Build<PHONE_NUMBER>

0 of 0   changed or added relevant lines in 0 files are covered.
1 unchanged line in 1 file lost coverage.
Overall coverage decreased (-0.2%) to 89.32%

Files with Coverage Reduction
New Missed Lines
%

contracts/libs/ValidatorStorage.sol
1
71.48%

Totals

Change from base Build<PHONE_NUMBER>:
-0.2%

Covered Lines:
857

Relevant Lines:
932

💛  - Coveralls


inpaint model release

Would you consider releasing an inpaint model?

This is a good idea, and I will add it to my to-do list. However, due to our manpower shortage (only me focusing on SDXS), it might start after a month.

This is a good idea, and I will add it to my to-do list. However, due to our manpower shortage (only me focusing on SDXS), it might start after a month.

This is awesome, looking forward to your future work.

great work！

The subsequent open source program has been terminated by the Company. I'll reopen these issues if there are subsequent progress.


opam-0install-cudf: Remove the unnecessary dependency towards the opam library

It seems the only reason there was still a dependency on the opam-state library was because OpamConsole.log was called. However I don't think this is necessary, ~the case where it is needed should not happen anyway~ EDIT: it happens but I don't see why we'd need to log this.

Thanks!


Timeout: click ' .monaco-editor[data-uri$="settings.json"] .view-lines > .view-line:nth-child(1)'

Build: https://dev.azure.com/monacotools/a6d41577-0fa3-498e-af22-257312ff0545/_build/results?buildId=201861
Changes: https://github.com/Microsoft/vscode/compare/b8968e9...9b8548e
  1) VSCode Smoke Tests (Electron)
       Language Features
         verifies settings (css):
     Error: Timeout: click ' .monaco-editor[data-uri$="settings.json"] .view-lines > .view-line:nth-child(1)' after 20 seconds.
      at Code.poll (/__w/1/s/test/automation/src/code.ts:269:11)
      at Code.waitAndClick (/__w/1/s/test/automation/src/code.ts:210:3)
      at Editor.waitForEditorFocus (/__w/1/s/test/automation/src/editor.ts:83:3)
      at SettingsEditor.openUserSettingsFile (/__w/1/s/test/automation/src/settings.ts:54:3)
      at SettingsEditor.addUserSetting (/__w/1/s/test/automation/src/settings.ts:22:3)
      at Context.<anonymous> (src/areas/languages/languages.test.ts:48:4)

Looks like this was a one-off. Next builds went through. Closing.


Staging voice vidio detect

Hi,
the nf code is missing the license headers and the osynbc ones have plume and not spdx bsd heders.
John

merged into pending, Thanks !


How to change AWEL project database config from using temp data to local Mysql database?

Search before asking

[X] I had searched in the issues and found no similar issues.

Operating system information
Linux
Python version information
3.10
DB-GPT version
main
Related scenes

[X] Chat Data
[ ] Chat Excel
[X] Chat DB
[ ] Chat Knowledge
[ ] Model Management
[ ] Dashboard
[ ] Plugins

Installation Information

[X] Installation From Source

[ ] Docker Installation

[ ] Docker Compose Installation

[ ] Cluster Installation

[ ] AutoDL Image

[ ] Other

Device information
GPU 32G
Models information
1
What happened
Hi, I want to change this part to use my local Mysql database, how to modify this part of code?

What you expected to happen
1
How to reproduce
1
Additional context
No response
Are you willing to submit PR?

[ ] Yes I am willing to submit a PR!

To further describe my question clearly, if I have already set up a local Mysql database session in AWEL script like this, how to connect it(or pass parameters) to this method db_query_task = DatasourceOperator(connector=mysql_local_database) for tasks?


chore: fix rollup build

Coverage remained the same at 90.909% when pulling 44972071e24a6942ef466e2a00e0ecef50939762 on chore--fix-rollup-build into f063315875f983774f7d637ab363a86a8cf5b465 on master.


feat(config): add dosbatch support

Add dosbatch support for security (Vim's default :: commentstring may cause errors) and compatibility (with all versions of Windows) reasons. Here is two (the shortest) of the many justifications:

tldr
generalized

Good evening and thank you for your contribution! I am testing the PR locally and will merge once done :)


Update dependencies

Hi!
material-ui now has v0.16 but you still require v0.15.4 :)

Sure Thank you!

You forgot to bump the version <3


fix config of port and url

Description
This PR fixes an issue with configuring port and url. In #292, you change code to fix port and url each 500 and 127.0.01 when robyn.env doesn't exist.
So, I changed url and port that is the parameter of app.start() method to optional parameter.
Then, you can use app.start() without parameter, and you can use parameter port and url ignoring robyn.env.

https://github.com/kimhyun5u/robyn/blob/a992f4256589ecb946cfcdbdd2b47d8694855636/robyn/__init__.py#L106-L116

@kimhyun5u , thank you for your PR. But doesn't robyn.env override the defaults the way it is?

Actually I learned about robyn on https://sansyrox.github.io/robyn/#/getting-started.
But there is no mention about robyn.env, so I spent lot of time to start robyn app that is set port and url each not 5000 and not 127.0.01.
So, it make confuse to users like me.
I think you would better mention about robyn.env on https://sansyrox.github.io/robyn/#/getting-started or change the method about configuring port and url

But there is no mention about robyn.env, so I spent lot of time to start robyn app that is set port and url each not 5000 and not 127.0.01. That will make confused to users like me.

Fair enough. Would you like to create a PR to update the documentation?

@sansyrox , I love to update the document.
But this current code ignores app.start() parameter(port, url).
So, I think it needs appropriate action like changning the code.

@kimhyun5u , I still don't understand the need for this. Robyn already allows you to set port via environment variables.
e.g. if you run the command ROBYN_PORT=5002 python3 index.py when there is no robyn.env file then it will run it on PORT=5002.
How will the PR change the behaviour?

@sansyrox , I think there are two issues on the current code.
First, the code,app.start(port=5000, url="<IP_ADDRESS>") , is not working.
The port and url is written in this code, but if i started this code by python3 app.py, the url of this app is set to <IP_ADDRESS>.
Of course, if i start by ROBYN_URL=<IP_ADDRESS> python3 index.py, it will be set to <IP_ADDRESS>
Although it is working properly by another way, robyn should fix meaningfulness parameter.
Second, even though there is a way that work it right a way like ROBYN_URL=<IP_ADDRESS> python3 index.py or creating robyn.enc, the docs is not mention about this.
Users who is the first time to use robyn would follow the docs like getting started. But the docs is not noticing about this, it makes confused them.
So robyn should offer that app.start(port=5000, url="<IP_ADDRESS>") is working properly. Or, If robyn wants it to work only as robyn.env, it should remove the parameters of app.start() to avoid user's misunderstanding.
Finally, the PR offer that the parameters of app.start() get the top priority in configuring the port and url and if there is no parameter in app.start, then look up robyn.env.

First, the code,app.start(port=5000, url="<IP_ADDRESS>") , is not working. The port and url is written in this code, but if i started this code by python3 app.py, the url of this app is set to <IP_ADDRESS>.

Ah, my bad. I am surprised how it went unnoticed in the past two versions. Thank you! 😄
Everything makes complete sense. Thank you :D

I think if robyn showed the port number and url that is used now, i wouldn't be confused.
So It might be better to print port and url on console like the other framework.
I'll have to think a bit about the testing.
Thank you for your dedication to OSS.

I think if robyn showed the port number and url that is used now, i wouldn't be confused. So It might be better to print port and url on console like the other framework.

Makes sense. I'll merge your PR now. I'll add it afterward. :D


fix(traefik): wrong redirect on oauth

fix for redirect
can be tested on https://regex101.com/
with this url:
https://dev.hub.innoactive.de/oauth/authorize/?client_id=iw50wRalfay3KNWET5wseIqz40vC8QR4dUvqxOK8&state=OqIW33pgf0r1Vsl_N-NPRvlEss0g9zB24zO88_1hoyo&redirect_uri=http://admin.portal.dev.innoactive.io/&response_type=code&approval_prompt=auto

:tada: This PR is included in version 5.1.1 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket: