Closed PitterL closed 5 years ago
electron 1.8.8 is work for this
I found the electron boilerplate is not work with
https://github.com/mjangir/reactron https://github.com/electron-react-boilerplate/electron-react-boilerplate
thanks.
Hi, Myxvisual:
I found there caused the
React.Children.toArray(primaryCommands).filter(
function (child) {
console.log("<CommandBar> child:", child.type, AppBarButton_1.default, child.type == AppBarButton_1.default, child.type == AppBarSeparator_1.default);
return (child.type === AppBarButton_1.default || child.type === AppBarSeparator_1.default);
}
);
the result show the two function is same but i don't have idea why it's not equal(even use '=='):
Still found the same issues in SplitView.prototype.render function:
Use function name to determine the component instead:
React.Children.forEach(children, function (child, index) {
if (child.type.name === SplitViewPane_1.default.name) {
splitViewPanes.push(React.cloneElement(child, {
...
Hi, @PitterL sorry for delay in reply, I guess your project has multiple node_modules, which causes the referenced js files to be different.
Actual it is that, the boilerplate use two-package-structure which has get two node_modules https://www.electron.build/tutorials/two-package-structure
Thank you, Myxvisual .
Hi, Myxvisual: I tried to test the example of commandbar, it shows the and couldn't be render out. There is no icons displayed for primaryCommands. And for secondaryCommands, the could come out, but not appears.
==============================================================
Problem description
commandbar example not work.
Link to minimal working code that reproduces the issue
https://www.react-uwp.com/components/commandbar
Versions