<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nicolehoefler19</title>
    <description>The latest articles on DEV Community by Nicolehoefler19 (@nicolehoefler19).</description>
    <link>https://dev.to/nicolehoefler19</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F372315%2F2120279c-8474-4e17-8fa5-ba6f5b81765b.png</url>
      <title>DEV Community: Nicolehoefler19</title>
      <link>https://dev.to/nicolehoefler19</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/nicolehoefler19"/>
    <language>en</language>
    <item>
      <title>Stencil doesn't start app-roote HELP!</title>
      <dc:creator>Nicolehoefler19</dc:creator>
      <pubDate>Thu, 23 Apr 2020 13:37:59 +0000</pubDate>
      <link>https://dev.to/nicolehoefler19/stencil-doesn-t-start-app-roote-help-6n4</link>
      <guid>https://dev.to/nicolehoefler19/stencil-doesn-t-start-app-roote-help-6n4</guid>
      <description>&lt;p&gt;I'm building an electron app with stencil. I have the newest version but Electron starts with index.html instead of app-home.tsx. Also I get an error for a JSX.Element but I don't know why. Maybe this is the reason why. May you could help me? I don't know what to do. Did I do sth wrong? I have updatet stencil-router, stencil-core and stencil itself. I doesn't start app-roote.tsx.&lt;/p&gt;

&lt;p&gt;app-roote.tsx&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { Component, h } from '@stencil/core';


@Component({
  tag: 'app-root',
  styleUrl: 'app-root.css',
  shadow: true
})
export class AppRoot {

  render() {
    return (
      &amp;lt;div&amp;gt;
        &amp;lt;header&amp;gt;
        &amp;lt;/header&amp;gt;

        &amp;lt;main&amp;gt;
          &amp;lt;stencil-router historyType="hash"&amp;gt;
            &amp;lt;stencil-route-switch scrollTopOffset={0}&amp;gt;
              &amp;lt;stencil-route url='/' component='app-home' exact={true} /&amp;gt;
              &amp;lt;stencil-route url='/profile/:name' component='app-profile' /&amp;gt;
              &amp;lt;stencil-route url='/bewertung' component='app-bewertung' /&amp;gt;
            &amp;lt;/stencil-route-switch&amp;gt;
          &amp;lt;/stencil-router&amp;gt;
        &amp;lt;/main&amp;gt;
        &amp;lt;footer&amp;gt; 
        &amp;lt;/footer&amp;gt;
      &amp;lt;/div&amp;gt;
    );
  }
}

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;state-tunnel.d.ts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import '../stencil.core';
import { FunctionalComponent } from "../stencil.core";
import { SubscribeCallback } from '../declarations';
declare function defaultConsumerRender(subscribe: SubscribeCallback&amp;lt;string&amp;gt;, renderer: Function): JSX.Element; //there is the error and in all JSX 
export declare function createProviderConsumer&amp;lt;T extends object&amp;gt;(defaultState: T, consumerRender?: typeof defaultConsumerRender): {
    Provider: FunctionalComponent&amp;lt;{
        state: T;
    }&amp;gt;;
    Consumer: FunctionalComponent&amp;lt;{}&amp;gt;;
    wrapConsumer: (childComponent: any, fieldList: Extract&amp;lt;keyof T, string&amp;gt;[]) =&amp;gt; ({ children, ...props }: any) =&amp;gt; JSX.Element;
    injectProps: (childComponent: any, fieldList: Extract&amp;lt;keyof T, string&amp;gt;[]) =&amp;gt; void;
};
export {};
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;Index.html:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html dir="ltr" lang="en"&amp;gt;
&amp;lt;head&amp;gt;
  &amp;lt;meta charset="utf-8"&amp;gt;
  &amp;lt;title&amp;gt;Stencil Starter App&amp;lt;/title&amp;gt;
  &amp;lt;meta name="Description" content="Welcome to the Stencil App Starter. You can use this starter to build entire apps all with web components using Stencil!"&amp;gt;
  &amp;lt;meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0, maximum-scale=8.0"&amp;gt;
  &amp;lt;meta name="theme-color" content="#16161d"&amp;gt;
  &amp;lt;meta name="apple-mobile-web-app-capable" content="yes"&amp;gt;
  &amp;lt;meta http-equiv="x-ua-compatible" content="IE=Edge"/&amp;gt;
  &amp;lt;link href="/Praesentationsbewerter/stencil-electron-st/src/global/app.css" rel="stylesheet"&amp;gt;
  &amp;lt;script src="/build/app.js"&amp;gt;&amp;lt;/script&amp;gt;

  &amp;lt;link rel="apple-touch-icon" href="/assets/icon/icon.png"&amp;gt;
  &amp;lt;link rel="icon" type="image/x-icon" href="/assets/icon/favicon.ico"&amp;gt;
  &amp;lt;link rel="manifest" href="/manifest.json"&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
  &amp;lt;header-leonie&amp;gt;&amp;lt;/header-leonie&amp;gt;
  &amp;lt;app-root&amp;gt;&amp;lt;/app-root&amp;gt;
  &amp;lt;footer-leonie&amp;gt;&amp;lt;/footer-leonie&amp;gt;

&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



&lt;p&gt;app-home.tsx:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight"&gt;&lt;pre class="highlight plaintext"&gt;&lt;code&gt;import { Component, h } from '@stencil/core';

@Component({
  tag: 'app-home',
  styleUrl: 'app-home.css',
  shadow: true
})
export class AppHome {

  render() {
    return (
      &amp;lt;div class='app-home'&amp;gt;
        &amp;lt;p&amp;gt;
          Herzlich Willkommen beim Präsentationsbewerter
        &amp;lt;/p&amp;gt;

        &amp;lt;stencil-route-link url='/profile/stencil'&amp;gt;
          &amp;lt;button&amp;gt;
            Starten
          &amp;lt;/button&amp;gt;
        &amp;lt;/stencil-route-link&amp;gt;
      &amp;lt;/div&amp;gt;
    );
  }
}

&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;



</description>
      <category>npm</category>
      <category>stencil</category>
      <category>electron</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
