Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70440

[Stencil] lazy-img component doesn't work after build production

$
0
0

@reedrichards wrote:

I have just deployed a dummy stencil website to test the lazy-img component from the ionic-pwa-toolkit on firebase and it looks like the component doesn’t work. After this I noticed that this doesn’t work neither if I serve the website after a production build.

npm start = ok
npm run build + npm run serve = not ok

Do I do something wrong?

<p>
     <h1>Lazy img</h1>
     <lazy-img src={"/assets/img/room.jpg"} alt={"A room"}></lazy-img>
</p>

https://lab-stencil-webgl.firebaseapp.com

After debugging, looks like that this.el.shadowRoot after a prod build is null in lazy-img…any idea?

UPDATE

It seems that I’m facing this issue https://github.com/ionic-team/stencil/issues/419

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70440

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>