IE 11 Not work on builded React code

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

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!

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

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

Anyway!
Thank you very much!

1 Like