vue-pdf-embed icon indicating copy to clipboard operation
vue-pdf-embed copied to clipboard

Files imported through cdn cannot be displayed; Vite + Vue3

Open sea-caterpillar opened this issue 1 year ago • 0 comments

Environment:

  • Vue Version: 3.3.0

  • vue-pdf-embed Version: 2.0.0、2.0.2

  • UserAgent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.0.0 Mobile Safari/537.36

  • Build Tool: Vite

Code Snippet:

image image image image image

Rendering-failed:

TypeError: Cannot read properties of undefined (reading 'children')
   at index.umd.js:28:3543
   at async Promise.all (:5173/index 0)
   at async G (index.umd.js:28:3387)

Files imported through cdn cannot be displayed;

But the other way is normal; eg: npm install vue-pdf-embed import VuePdfEmbed from 'vue-pdf-embed'

How to solve, please help me;

sea-caterpillar avatar Mar 04 '24 09:03 sea-caterpillar