vue-contenteditable icon indicating copy to clipboard operation
vue-contenteditable copied to clipboard

Console warning for missing source map contenteditable.vue.map

Open madebyfabian opened this issue 4 years ago • 4 comments

Hello there, the plugin works like a charm, so first of all, thanks for making it! I am using it in the 1.0.2 version, since I am using Vue 2. As I installed the plugin, I always get this console warning:

DevTools failed to load source map: Could not load content for http://localhost:8080/contenteditable.vue.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

it seems that it does want to load a sourcemap to it, what does not make sense since I installed the plugin regularly via npm and it therefore should not want to load any sourcemaps since it's in prod mode. Would be great if you could look into it, thanks!

madebyfabian avatar Jul 24 '21 14:07 madebyfabian

Hi, I think it's the Vue DevTools that tries to get a source map to enable debugging. The source map may not be present /served if not compiled from sources. Try with the Vue Dev tools disabled to confirm it. If the message does not appear then I think you are good. I'm in hollydays currently so I won't be able to look into it before 3 weeks...

hl037 avatar Jul 24 '21 22:07 hl037

Hey there, can't test it since I'm not using the package anymore. Will close this ticket for now, since it doesn't affect the functionality of the plugin in anyway.

madebyfabian avatar Sep 02 '21 09:09 madebyfabian

just delete sourceMappingURL=contenteditable.vue.map from vue-contenteditable/dist/contenteditable.esm.js

then produce a patch file

scil avatar Jun 14 '22 23:06 scil

I think it should be solved by version 4.0.2, with the switch to vite to build. I reopened waiting confirmation. However, the 1.x branch won't receive further support, because as of today, all frameworks depending on vue have made the switch...

hl037 avatar Jun 16 '22 12:06 hl037

No answer, so I believe it's not a problem anymore

hl037 avatar Sep 04 '22 07:09 hl037