Skip to content

Empty component with shadow dom enabled after building  #553

@ray-kay

Description

@ray-kay

Stencil version:

 @stencil/core@0.4.0
also tested with
 @stencil/core@0.6.0

I'm submitting a:

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://stencil-worldwide.slack.com

Current behavior:

When setting "shadow: true", building and running the build my component seems empty/not rendered.

Expected behavior:

With or without using shadow dom I expect the same visual outout.

Steps to reproduce:

I tested it again from scratch with the starter app

=> you should see the expected starter app web component

  • now go to src/components/my-app/my-app.tsx
  • add shadow: true after line 6
  • npm run build
  • cd www
  • http-server -o -p 1235

=> I see an empty white page (make sure you use a different port or open an incognito window)

Related code:

@Component({
  tag: 'my-app',
  styleUrl: 'my-app.css',
  shadow: true
})

Other information:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions