Skip to content
This repository was archived by the owner on Jan 18, 2023. It is now read-only.

example doesn't compile #6

@toyg

Description

@toyg

Out of the box, node server.js or npm run compile error out like this:

ERROR in ./Counter.js
Module build failed (from ../node_modules/babel-loader/lib/index.js):
SyntaxError: Unexpected token (16:6)

  14 |   render() {
  15 |     return (
> 16 |       <button
     |       ^
  17 |         onClick={() => {
  18 |           this.setState({ count: this.state.count + 1 });
  19 |         }}

 @ ./main.js 3:0-32 6:38-45
 @ multi ./main.js

Is this expected, or a sign that something in the installation has gone wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions