Skip to content

Compiled HTML looks faulty: __source / __self [object Object] #1058

@mthines

Description

@mthines

Hey guys!

I'm sitting with a freshly installed create-react-app which I've converted to Preact with the simple steps. I get this weird issue when compiling my jsx files with Preact, and can't really find the root of cause.

My Index.jsx

import { h, render } from 'preact';
import registerServiceWorker from './utilities/registerServiceWorker';

render(
  <div className="app">
    <p className="app-intro">
      To get started, edit <code>src/App.js</code> and save to reload.
    </p>
  </div>,
  document.getElementById('root')
);

registerServiceWorker();

The compiled HTML file

<div class="app" __source="[object Object]" __self="[object Object]">
  <button class="app-intro" __source="[object Object]" __self="[object Object]">
To get started, edit <code __source="[object Object]" __self="[object Object]">src/App.js</code> and save to reload.
  </button>
>

Does anybody have an idea of what might could be the problem?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions