Ionic 5 error with ssl

Hello people,
I am building a PWA with ionic 5 Angular and I performed the tests using http, because I find it simpler since I don’t have a valid ssl certificate.

Recently I went to perform the tests in https and the problem is that some components are not being loaded sometimes they do not load the ionic components (toast, modal, action sheet) other times they do not even load the icons of the action sheet. My routes in the app-routings are being loaded with lazy-loading.

Sorry for my English.

GET https://localhost:8100/stencil-ion-segment_2-md-entry-js.js net::ERR_CERT_AUTHORITY_INVALID

index-2cd7e630.js:1961 ChunkLoadError: Loading chunk stencil-ion-segment_2-md-entry-js failed.
(error: https://localhost:8100/stencil-ion-segment_2-md-entry-js.js)
    at requireEnsure (https://localhost:8100/runtime.js:127:26)
    at Array.map (<anonymous>)
    at webpackAsyncContext (https://localhost:8100/main.js:486:34)
    at loadModule (https://localhost:8100/vendor.js:108869:166)
    at initializeComponent (https://localhost:8100/vendor.js:108524:20)
    at https://localhost:8100/vendor.js:108666:32
    at ZoneDelegate.invoke (https://localhost:8100/polyfills.js:3709:26)
    at Zone.run (https://localhost:8100/polyfills.js:3474:43)
    at https://localhost:8100/polyfills.js:4205:36
    at ZoneDelegate.invokeTask (https://localhost:8100/polyfills.js:3741:31)

Unhandled Promise rejection: Cannot read property 'isProxied' of undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read property 'isProxied' of undefined
    at initializeComponent (index-2cd7e630.js:1633) TypeError: Cannot read property 'isProxied' of undefined
    at initializeComponent (https://localhost:8100/vendor.js:108531:24)

GET https://localhost:8100/stencil-ion-action-sheet-md-entry-js.js net::ERR_CERT_AUTHORITY_INVALID

ChunkLoadError: Loading chunk stencil-ion-action-sheet-md-entry-js failed.
(error: https://localhost:8100/stencil-ion-action-sheet-md-entry-js.js)
    at requireEnsure (https://localhost:8100/runtime.js:127:26)
    at Array.map (<anonymous>)
    at webpackAsyncContext (https://localhost:8100/main.js:486:34)
    at loadModule (https://localhost:8100/vendor.js:108869:166)
    at initializeComponent (https://localhost:8100/vendor.js:108524:20)
    at https://localhost:8100/vendor.js:108666:32
    at ZoneDelegate.invoke (https://localhost:8100/polyfills.js:3709:26)
    at Zone.run (https://localhost:8100/polyfills.js:3474:43)
    at https://localhost:8100/polyfills.js:4205:36
    at ZoneDelegate.invokeTask (https://localhost:8100/polyfills.js:3741:31)

GET https://localhost:8100/svg/pencil.svg net::ERR_CERT_AUTHORITY_INVALID
Unhandled Promise rejection: Failed to fetch ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Failed to fetch TypeError: Failed to fetch