# IE 11 Not work on builded React code

**URL:** <https://pdfjs.community/t/ie-11-not-work-on-builded-react-code/227>\
**Category:** Technical Support\
**Created:** [August 24, 2020, 9:43am UTC](https://pdfjs.community/t/ie-11-not-work-on-builded-react-code/227 "2020-08-24T09:43:22Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysc692](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@ysc692](https://pdfjs.community/u/ysc692)\
**Post date:** [August 24, 2020, 9:43am UTC](https://pdfjs.community/t/ie-11-not-work-on-builded-react-code/227/1 "2020-08-24T09:43:22Z")

</div>

Dear Support,

I use your React Sample to create my program.

When i run “npm start” at the localhost, the IE 11 can 100% success run my program

But i “npm run build” my program and copy the build folder to my IIS server the show the blank page (just only can show meta title)

I m open F12 Developer Tools on IE 11, show 404 file missing of file “lib/webviewer.min.js” and the Console error:

SCRIPT1010: Expected identifier  
PDFJSExpress (1,1310849852)

SCRIPT1010: Expected identifier  
1.b7a27b1d.chunk.js (1,9643)

I was download and upload “lib/webviewer.min.js” and “lib” folder to my IIS Folder fixed 404 not found but also not work. show the error as below :

SCRIPT1010: Expected identifier  
webviewer.min.js (1,1029)

SCRIPT1010: Expected identifier  
PDFJSExpress (1,1310849852)

SCRIPT1010: Expected identifier  
1.b7a27b1d.chunk.js (1,9643)

I can sure 100% work on Chrome and Firefox and Clean IE11 browser cache.

So do you know whats problem & can help?

My IE  
Version : 11.1039.17763.0  
Update Versions: 11.0.175(KB4537767)

Thanks

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [August 24, 2020, 2:50pm UTC](https://pdfjs.community/t/ie-11-not-work-on-builded-react-code/227/2 "2020-08-24T14:50:09Z")

</div>

Hi!

What version of PDF.js Express are you using?

When you open it in a browser that does work, there should be a console log with the version numbers.

Thanks!

---

<div class="post-metadata">

**Author:** ![ysc692](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@ysc692](https://pdfjs.community/u/ysc692)\
**Post date:** [August 25, 2020, 1:26am UTC](https://pdfjs.community/t/ie-11-not-work-on-builded-react-code/227/3 "2020-08-25T01:26:51Z")

</div>

Hello Support!

Just only can show the version details as google chrome console log, the IE 11 not found

Google Chrome PDF Express version details as below (Run on “npm run build”)

UI version : 6.3.3  
Core version : 6.3.4  
Build : Ni8yOS8yMDIwfDZhZDkzMGE=  
WebViewer Server : false  
Full API : false

* * *

IE 11 PDF Express version details as below (Run on “npm start”)

[WebViewer] UI version: 6.3.3, Core version: 6.3.4, Build: Ni8yOS8yMDIwfDZhZDkzMGE=, WebViewer Server: false, Full API: false

* * *

“@pdftron/pdfjs-express”: “^6.2.1”,

```
"axios": "^0.19.2",

"debug": "^4.1.1",

"react": "^16.6.0",

"react-app-polyfill": "^1.0.6",

"react-dom": "^16.6.0",

"react-router-dom": "^5.2.0",

"react-scripts": "2.1.1"

```

`-- react-scripts@2.1.1 `– webpack@4.19.1

---

<div class="post-metadata">

**Author:** ![ysc692](https://avatars.discourse-cdn.com/v4/letter/y/58956e/32.png) [@ysc692](https://pdfjs.community/u/ysc692)\
**Post date:** [August 25, 2020, 4:15am UTC](https://pdfjs.community/t/ie-11-not-work-on-builded-react-code/227/4 "2020-08-25T04:15:22Z")

</div>

Hello Support,

I was fixed the problem.

* * *

Remove this line on public/index.html

script src="%PUBLIC\_URL%/lib/webviewer.min.js"

Add this meta tab line on public/index.html  
meta http-equiv=“X-UA-Compatible” content=“IE=edge”

* * *

Also can ref :

[https://www.thetopsites.net/article/51315987.shtml](https://www.thetopsites.net/article/51315987.shtml)

Anyway!  
Thank you very much!

---

<div class="post-metadata">

**Author:** ![Logan](https://yyz1.discourse-cdn.com/flex031/user_avatar/pdfjs.community/logan/32/13_2.png) [@Logan](https://pdfjs.community/u/Logan)\
**Post date:** [August 25, 2020, 5:29pm UTC](https://pdfjs.community/t/ie-11-not-work-on-builded-react-code/227/5 "2020-08-25T17:29:14Z")

</div>


