Skip to content

Parse error on line 125 #401

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

Closed
OmgImAlexis opened this issue Mar 16, 2017 · 3 comments
Closed

Parse error on line 125 #401

OmgImAlexis opened this issue Mar 16, 2017 · 3 comments

Comments

@OmgImAlexis
Copy link

After running vue init ~/code/simon twistly-frontend I get this error.
Template repo: https://github.com/OmgImAlexis/simon

? Project name twistly-frontend
? Project description Frontend for Twistly
? Author Alexis Tyler <xo@wvvw.me>
? Need a client? Yes
? Need a server? No
   vue-cli · Parse error on line 125:
...== 1) {      // x{{a,b}}y ==> x{a}y x{b
----------------------^
Expecting 'ID', 'STRING', 'NUMBER', 'BOOLEAN', 'UNDEFINED', 'NULL', 'DATA', got 'INVALID'
@posva
Copy link
Member

posva commented Mar 16, 2017

Handlebars is trying to parse that but it fails because it's not a syntax it knows. You should be able to escape it with \{{}}.

@posva posva closed this as completed Mar 16, 2017
@OmgImAlexis
Copy link
Author

@posva would it be possible to have something more descriptive added here as this doesn't really point back to the file with the issue instead of states there is one. Going through my code I can't actually find anything with that line in it as I'm assuming that's compiled code it's dealing with?

@calvernaz
Copy link

@posva @OmgImAlexis The patch definitely gives a better error description for what's going on, but soon you will realize the issue is handlebars trying to interpolate a file you don't care about like a file inside node_modules, in order to avoid these interpolation errors use the property skipInterpolation.

"skipInterpolation": ["src/**/*.vue", "node_modules/**"]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants