As mentionned in this Github issue, one of the solutions might be adding this change to your package.json:
package.json
// changing "pdfjs-dist": "^2.6.347", // to "pdfjs-dist": "2.6.347",