import * as pdfjsLib from 'pdfjs-dist/webpack';
needs .mjs
#17319
Labels
import * as pdfjsLib from 'pdfjs-dist/webpack';
needs .mjs
#17319
Attach (recommended) or Link to PDF file here:
Configuration:
Steps to reproduce the problem:
examples/webpack
README.md
npm run build
"pdfjs-dist/webpack"
to"pdfjs-dist/webpack.mjs"
, no error occurs.import * as pdfjsLib from "pdfjs-dist/webpack";
inREADME.md
should beimport * as pdfjsLib from "pdfjs-dist/webpack.mjs";
The text was updated successfully, but these errors were encountered: