From 82e278a2a2307d04249106ea0d5cc16c890feee0 Mon Sep 17 00:00:00 2001 From: Tom <7283497+thfrei@users.noreply.github.com> Date: Mon, 11 Apr 2022 10:42:44 +0200 Subject: [PATCH] add comment about excalidraw-error message on insert --- src/public/app/widgets/type_widgets/canvas_note.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/public/app/widgets/type_widgets/canvas_note.js b/src/public/app/widgets/type_widgets/canvas_note.js index 18d0ebcd4..e7cbc4d14 100644 --- a/src/public/app/widgets/type_widgets/canvas_note.js +++ b/src/public/app/widgets/type_widgets/canvas_note.js @@ -42,7 +42,14 @@ const TPL = ` * See: https://www.npmjs.com/package/@excalidraw/excalidraw => FONT_FAMILY */ /** - * FIXME: somehow the files array keeps increasing. Somehow the files from one note are transferred to another? + * upon insterting a screenshot/image, we get a chunk load error. somehow our excalidraw.js is thinking about a + * chunck, hosted on unpkg.com + * + * VM18070:2 GET https://unpkg.com/@excalidraw/excalidraw@0.11.0/dist/excalidraw-assets/vendor-41e5c0be76c29ad2aba4.js net::ERR_BLOCKED_BY_RESPONSE.NotSameOriginAfterDefaultedToSameOriginByCoep 200 +VM18070:2 error trying to resing image file on insertion ChunkLoadError: Loading chunk 736 failed. +(error: https://unpkg.com/@excalidraw/excalidraw@0.11.0/dist/excalidraw-assets/vendor-41e5c0be76c29ad2aba4.js) + at Object.c.f.j (:2:667361) + at :2:663588 */ /** * Discussion?: add complete @excalidraw/excalidraw, utils, react, react-dom as library? maybe also node_modules? @@ -255,7 +262,6 @@ export default class ExcalidrawTypeWidget extends TypeWidget { files: activeFiles, time, }; - // this.log('getContent()', content, activeFiles); return JSON.stringify(content);