Skip to content

Component does not render in prod but does in debug, no errors or warnings #3297

@Trojaner

Description

@Trojaner

Version

3.0.6

Reproduction link

http://plnkr.co/edit/9KJo5ozJ86xh9I8u

Steps to reproduce

  1. Open repro
  2. Observe how the bug component does not get rendered (no errors or warnings) (it should output 6 "a"'s side by side)
  3. Comment the following in line 17 in bug.js, see how the component gets rendered:
if(this.values) { }
  1. Uncomment the related code again to break it again
  2. Switch to debug module: replace vue.esm-browser.prod.js with vue.esm-browser.js in index.html
  3. Component gets rendered again despite the related "if" still being there

What is expected?

Component should render if using prod module; behavior should not be inconsistent with prod or debug module

What is actually happening?

Component does not render in prod mode, no errors or warnings in prod or debug mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    🔨 p3-minor-bugPriority 3: this fixes a bug, but is an edge case that only affects very specific usage.🐞 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions