Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser Error: Missing expected } at the end of the expression #67

Closed
valera33 opened this issue Feb 7, 2020 · 2 comments · Fixed by #69
Closed

Parser Error: Missing expected } at the end of the expression #67

valera33 opened this issue Feb 7, 2020 · 2 comments · Fixed by #69
Assignees
Labels
framework: Angular Related to the framework Angular type: bug Functionality that does not work as intended/expected

Comments

@valera33
Copy link

valera33 commented Feb 7, 2020

When we use:
prettier: 1.19.1
@prettier/plugin-pug: 1.1.5

if PUG is something like:

.foo([myAttribute]="{param:'hello {name}' | translate:{'name':arg}}")

then we get such Error:

foo.pug[error] foo.pug: SyntaxError: Missing expected } at the end of the expression [{{{param:'hello {name}' | translate:{'name':arg}}}}] in angular-estree-parser
[error] at o (/myProject/node_modules/prettier/parser-angular.js:15:16477)
[error] at t.parseNgInterpolation (/myProject/node_modules/prettier/parser-angular.js:15:17607)
[error] at n (/myProject/node_modules/prettier/parser-angular.js:15:28488)
[error] at Object.t.parseInterpolation (/myProject/node_modules/prettier/parser-angular.js:15:28826)
[error] at /myProject/node_modules/prettier/parser-angular.js:15:29569
[error] at Object.parse (/myProject/node_modules/prettier/parser-angular.js:15:29226)
[error] at Object.parse (/myProject/node_modules/prettier/index.js:9739:19)
[error] at coreFormat (/myProject/node_modules/prettier/index.js:13252:23)
[error] at format (/myProject/node_modules/prettier/index.js:13510:73)
[error] at formatWithCursor (/myProject/node_modules/prettier/index.js:13526:12)

@Shinigami92 Shinigami92 self-assigned this Feb 7, 2020
@Shinigami92 Shinigami92 added framework: Angular Related to the framework Angular type: bug Functionality that does not work as intended/expected labels Feb 7, 2020
@Shinigami92
Copy link
Member

Will target this bug upcoming weekend

@valera33
Copy link
Author

valera33 commented Feb 10, 2020

thanks for the very quick fix! it is ok now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
framework: Angular Related to the framework Angular type: bug Functionality that does not work as intended/expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants