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

Emit compiler warning, if riot script tag is outside of root tag #130

Closed
3 of 7 tasks
mojo2012 opened this issue Jan 27, 2020 · 1 comment
Closed
3 of 7 tasks

Emit compiler warning, if riot script tag is outside of root tag #130

mojo2012 opened this issue Jan 27, 2020 · 1 comment
Assignees

Comments

@mojo2012
Copy link

Help us to manage our issues by answering the following:

  1. Describe your issue:
    I was wondering for half an hour why this didn't work:
<header class="mdl-layout__header">
    <div class="mdl-layout__header-row">
        <!-- Title -->
        <span class="mdl-layout-title">{props.title}</span>

        <slot name="items-left"></slot>

        <!-- Add spacer, to align navigation to the right -->
        <div class="mdl-layout-spacer"></div>

        <slot name="items-right"></slot>
    </div>
</header>

    <script lang="ts">
        import { UINavbar } from "./UINavbar.ts";
        export default new UINavbar();
    </script>

There was no warning or error message. It did even render on screen, just the script tag was ignored.

  1. Can you reproduce the issue?
    Yes always

  2. How would you tag this issue?

  • Question
  • Bug
  • Discussion
  • Feature request
  • Tip
  • Enhancement
  • Performance
@GianlucaGuarini
Copy link
Member

@mojo2012 that's a good Idea thank you for your feedback

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

Successfully merging a pull request may close this issue.

2 participants