vue3-sfc-loader icon indicating copy to clipboard operation
vue3-sfc-loader copied to clipboard

Error after load vue3-sfc-loader locally

Open dreambo8563 opened this issue 10 months ago • 0 comments

Describe the bug

I download the vue3-sfc-loader.js on my local, and run a web server to produce the demo. failed with errors To Reproduce

  1. download the file with curl: curl https://cdn.jsdelivr.net/npm/vue3-sfc-loader/dist/vue3-sfc-loader.js -o vue3-sfc-loader.js
  2. copy the demo code from codepen (https://codepen.io/franckfreiburger/project/editor/AqPyBr)
  3. run a webserver python3 -m http.server 8080
  4. load the page with error : image the error navigate to a block of strange code image

Expected behavior

no error happen and I can make the demo successfully .

Versions

  • Browser (name & version): Chrome Version 123.0.6312.122 (Official Build) (x86_64)
  • vue3-sfc-loader: v0.9.5

Additional context

when load the js with CDN as the document write, everything works, I don't know which step make the error happen and what the difference between the file I downloaded and the file on CDN server.

dreambo8563 avatar Apr 12 '24 14:04 dreambo8563