# Stencil - polyfill issue - when imported from npm

**URL:** <https://forum.ionicframework.com/t/stencil-polyfill-issue-when-imported-from-npm/187281>\
**Category:** Stencil\
**Created:** [April 14, 2020, 1:35pm UTC](https://forum.ionicframework.com/t/stencil-polyfill-issue-when-imported-from-npm/187281 "2020-04-14T13:35:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jerdeaf1](https://avatars.discourse-cdn.com/v4/letter/j/9fc29f/32.png) [@jerdeaf1](https://forum.ionicframework.com/u/jerdeaf1)\
**Post date:** [April 14, 2020, 1:35pm UTC](https://forum.ionicframework.com/t/stencil-polyfill-issue-when-imported-from-npm/187281/1 "2020-04-14T13:35:04Z")

</div>

Hello guys, 🙂  
Steps:

1. new stencil project (@1.12.3), build it, the dist/ and loader/ folders generated
2. new create-react-app where the project created at 1) is used like stencil suggest:

```auto
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?)?
