Skip to content

The 'hello-world' example is not working out of the box #1518

@Pablo-Merino

Description

@Pablo-Merino

Hello everyone! I was going to start researching if using Next for our project was a good choice, but I couldn't get the 'hello-world' example working. I've followed exactly as the README says, but it won't work. I've also followed the guide on Next's Readme, but I've got the same results.

Am I doing anything wrong? Perhaps with my environment?

Thanks and sorry if this is duplicated (found similar issues, but didn't help me).

This is the error:

ERROR  Failed to compile with 1 errors                                                                                                                                      15:25:47

 error  in ./pages?entry

Syntax Error: Unexpected token (3:2)

  1 | import Link from 'next/link'
  2 | export default () => (
> 3 |   <div>Hello World. <Link href='/about'><a>About</a></Link></div>
    |   ^
  4 | )
  5 |


 @ multi ./pages?entry

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions