Skip to content

ERROR in Invalid or unexpected token #13064

@richardsengers

Description

@richardsengers

Bug Report or Feature Request (mark with an x)

- [X ] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [X] build
- [X] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Angular CLI: 7.1.0
Node: 9.11.1
OS: win32 x64
Angular:
...

Package                      Version
------------------------------------------------------
@angular-devkit/architect    0.11.0
@angular-devkit/core         7.1.0
@angular-devkit/schematics   7.1.0
@schematics/angular          7.1.0
@schematics/update           0.11.0
rxjs                         6.3.3
typescript                   3.1.6

Repro steps

Copy a text with hidden special characters, Like LS

The log given by the failure

ERROR in Invalid or unexpected token

Desired functionality

Give more details about the error, for example the template and line number (if that's possible)

Mention any other details that might be useful

I've copied a text from a design tool called Figma into my template After running --aot a very unclear error message occurs, which took me hours to find the exact error.
Copying the specific tekst to Notepad ++ showed me the hidden text.

https://www.figma.com/file/Y1Qoirjshd3SjoeITfqdKlVL/Untitled?node-id=0%3A1

ls

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions