Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Laravel Starter Kit Throws Error


unexpected identifier "string" expecting variable ... vendor\sebastian\version\src\Version.php on line 25
I made sure this was running latest version and using Laravel 10.
Appears it is used in another vendor as is not part of parent composer.json file.


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

It appears that there is no plugin installed in the Laravel project related to the package sebastian\version. This package is not part of the parent composer.json file, so it is likely not directly required by the project. The error you're seeing may be caused by a conflict or dependency issue with another package.

To solve this error, you can try running composer update to update all your dependencies, including the packages that might be using sebastian/version. If that doesn't work, you can try manually removing the vendor directory and running composer install again to reinstall all your dependencies from scratch.

It's also possible that the error is caused by a syntax error in your code, such as using the reserved word "string" as a variable name. Make sure to double-check your code for any syntax errors.

If the issue persists, you may need to provide more details about your code and dependencies to identify the root cause of the error.

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(