Skip to content

Syntax Error on First Step of Tutorial #1333

@justingolden21

Description

@justingolden21

Hi, I was trying to follow the tutorial here however in step 1 I get:

Uncaught SyntaxError: Unexpected token * in data.js:18

Continuing the tutorial in step 2, I get:

Uncaught SyntaxError: Unexpected token { in scripts.js:1

This is probably because the import/export syntax isn't available on my end, however I've followed the instructions completly. I can presume that this would also turn off anybody else trying to follow the tutorial when none of the code works because of invalid import/export syntax.

I've got the newest versions of Chrome and Firefox, and in Firefox I get:

SyntaxError: import declarations may only appear at top level of a module instead for both files.

I've looked at the syntax and the support for this and don't see why this code would cause any problems.

Thank you for looking into this issue.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions