Skip to content

Bug: [plugin:vite:vue] (php) element is missing end tag. #4

@camya

Description

@camya

I tried to put the php section at the very end of the file, but this results in an error like the one shown below.

Pages/Index.vue

<template>
  <div>
    Hello: {{ name }}!
  </div>
</template>

<php>
use function \Fusion\{prop};

$name = prop('Aaron');
</php>

Error message in console:

[plugin:vite:vue] Element is missing end tag.
/var/www/html/resources/js/Pages/Index.vue:8:1
6  |  
7  |  <php>
8  |  use function \Fusion\{prop};
   |   ^
9  |  
10 |  $name = prop('Aaron');

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions