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

Stencil - polyfill issue - when import from npm

$
0
0

@jerdeaf1 wrote:

Hello guys, :slight_smile:
Steps:

  1. new stencil project, build it, the dist/ and loader/ folders generated
  2. new create-react-app where the project created at 1) is used like stencil suggest:
import { applyPolyfills, defineCustomElements } from 'test-components/loader';
		applyPolyfills().then(() => {
			defineCustomElements();
		});
  1. looks good in all browsers except IE. The polyfill is not applied in IE11 (Error: ‘Promise’ is undefined).
  2. if I use the scripts in index.html it works good

Is that a known issue in Stencil or am I doing something wrong (what?)?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70434

Trending Articles



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