question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Im getting some odd errors in some views

{ path: 'resources/views/bonus/store.blade.php',
  message: 'Parse Error : syntax error, unexpected \'<\' on line 55\n\u001b[0m \u001b[90m 53 | \u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 54 | \u001b[39m                    \u001b[33m<\u001b[39m\u001b[33m?\u001b[39mphp \u001b[90m//@foreach ($downloadOptions as $d => $dO)\u001b[39m\u001b[0m\n\u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 55 | \u001b[39m                        \u001b[33m<\u001b[39m\u001b[33mtr\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m    | \u001b[39m                       \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 56 | \u001b[39m                            \u001b[33m<\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m?\u001b[39mphp  $dO[\u001b[32m\'description\'\u001b[39m]  \u001b[33m?\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m/\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 57 | \u001b[39m                            \u001b[33m<\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m?\u001b[39mphp  $dO[\u001b[32m\'cost\'\u001b[39m]  \u001b[33m?\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m/\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 58 | \u001b[39m                            \u001b[33m<\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[0m',
  error: 
   { SyntaxError: Parse Error : syntax error, unexpected '<' on line 55
  53 | 
  54 |                     <?php //@foreach ($downloadOptions as $d => $dO)
> 55 |                         <tr>
     |                        ^
  56 |                             <td><?php  $dO['description']  ?></td>
  57 |                             <td><?php  $dO['cost']  ?></td>
  58 |                             <td>
    at parser.raiseError (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser.js:319:17)
    at parser.error (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser.js:364:15)
    at parser.read_expr_item (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser/expr.js:446:12)
    at parser.read_expr (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser/expr.js:12:19)
    at parser.read_statement (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser/statement.js:383:27)
    at parser.read_top_statement (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser/statement.js:71:21)
    at parser.read_start (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser/main.js:18:19)
    at parser.parse (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/parser.js:277:23)
    at engine.parseCode (/usr/lib/node_modules/blade-formatter/node_modules/php-parser/src/index.js:167:22)
    at Object.parse (/usr/lib/node_modules/blade-formatter/node_modules/@prettier/plugin-php/src/parser.js:30:57)
     fileName: 'eval',
     loc: { start: [Object] },
     codeFrame: '\u001b[0m \u001b[90m 53 | \u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 54 | \u001b[39m                    \u001b[33m<\u001b[39m\u001b[33m?\u001b[39mphp \u001b[90m//@foreach ($downloadOptions as $d => $dO)\u001b[39m\u001b[0m\n\u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 55 | \u001b[39m                        \u001b[33m<\u001b[39m\u001b[33mtr\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m    | \u001b[39m                       \u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 56 | \u001b[39m                            \u001b[33m<\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m?\u001b[39mphp  $dO[\u001b[32m\'description\'\u001b[39m]  \u001b[33m?\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m/\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 57 | \u001b[39m                            \u001b[33m<\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m?\u001b[39mphp  $dO[\u001b[32m\'cost\'\u001b[39m]  \u001b[33m?\u001b[39m\u001b[33m>\u001b[39m\u001b[33m<\u001b[39m\u001b[33m/\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 58 | \u001b[39m                            \u001b[33m<\u001b[39m\u001b[33mtd\u001b[39m\u001b[33m>\u001b[39m\u001b[0m' } }
{ path: 'resources/views/playlist/show.blade.php',
  message: 'Parse Error : syntax error, unexpected \'<\' on line 213\n\u001b[0m \u001b[90m 211 | \u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 212 | \u001b[39m\t\t\u001b[33m<\u001b[39m\u001b[33m?\u001b[39mphp \u001b[90m//<div class="block">\u001b[39m\u001b[0m\n\u001b[0m\u001b[31m\u001b[1m>\u001b[22m\u001b[39m\u001b[90m 213 | \u001b[39m\t\t\t\t\u001b[33m<\u001b[39m\u001b[33mdiv\u001b[39m \u001b[36mclass\u001b[39m\u001b[33m=\u001b[39m\u001b[32m"row"\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m     | \u001b[39m\t\t\t\u001b[31m\u001b[1m^\u001b[22m\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 214 | \u001b[39m\t\t\t\t\t\u001b[33m<\u001b[39m\u001b[33mdiv\u001b[39m \u001b[36mclass\u001b[39m\u001b[33m=\u001b[39m\u001b[32m"col-xs-6 col-sm-4 col-md-3"\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 215 | \u001b[39m\t\t\t\t\t\t\u001b[33m<\u001b[39m\u001b[33mdiv\u001b[39m \u001b[36mclass\u001b[39m\u001b[33m=\u001b[39m\u001b[32m"image-box text-center mb-20"\u001b[39m\u001b[33m>\u001b[39m\u001b[0m\n\u001b[0m \u001b[90m 216 | \u001b[39m\t\t\t\t\t\t\t\u001b[33m<\u001b[39m\u001b[33mdiv\u001b[39m \u001b[36mclass\u001b[39m\u001b[33m=\u001b[39m\u001b[32m"overlay-container"\u001b[39m\u001b[33m>\u001b[39m\u001b[0m',

The < is not unexpected though.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
lanphancommented, Feb 14, 2020

Hi all, Is there any progress on this problem? I have same problem.

My input:

{{-- <li class="nav-item">
                            <a href="{{ route("configuration.vendor-complaint-entry.index") }}" class="nav-link
        {{ request()->is('configuration/vendor-complaint-entry*') ? 'active' : '' }}">
        <p>
            <span>{{ trans('cruds.vendorComplaintEntry.title') }}</span>
        </p>
        </a>
</li> --}}
1reaction
palpalanicommented, Nov 10, 2019

Yes, I am also getting the same error when there is a multiline comment block like {{-- --}}.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unexpected - TLC GO
Unexpected takes a raw look at teenage pregnancies and the effects on teen parents and their families as everyone prepares for the arrival...
Read more >
Unexpected (TV Series 2017– ) - IMDb
Unexpected : With Tyra Boisseau, McKayla Adkins, Lilly Bennett, Alex Wilson. Unexpected, a new series following the journey of three pregnant teen couples ......
Read more >
Unexpected Definition & Meaning - Merriam-Webster
The meaning of UNEXPECTED is not expected : unforeseen. How to use unexpected in a sentence.
Read more >
Unexpected - Home - Facebook
Unexpected. 202870 likes · 942 talking about this. TLC's official page for Unexpected.
Read more >
Unexpected Definition & Meaning | Dictionary.com
not expected; unforeseen; surprising: an unexpected pleasure;an unexpected development. OTHER WORDS FOR unexpected. unanticipated. See synonyms for unexpected ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found