current position:Home>Vue3 reports an error when using BPMN. The $PKG parameter is read-only

Vue3 reports an error when using BPMN. The $PKG parameter is read-only

2022-02-03 02:24:39 CSDN Q & A

The phenomenon and background of the problem

vue3 Use bpmn Times wrong $pkg Parameter read only

this.definePackage(descriptor, descriptor.allTypes[descriptor.allTypes.length - 1].$pkg);

Operation results and error reporting contents
Uncaught (in promise) TypeError: 'get' on proxy: property '$pkg' is a read-only and non-configurable data property on the proxy target but the proxy did not return its actual value (expected '#<Object>' but got '#<Object>')    at Proxy.Registry.getEffectiveDescriptor (index.esm.js:550)    at Proxy.Moddle.getType (index.esm.js:768)    at RootElementHandler.ElementHandler (index.esm.js:271)    at new RootElementHandler (index.esm.js:525)    at Reader.handler (index.esm.js:878)    at Proxy.BpmnModdle.fromXML (index.esm.js:44)    at Proxy.Viewer.importXML (Viewer.js:195)    at Proxy.initDiagram (VueBpmn.vue:74)    at Proxy.init (VueBpmn.vue:71)    at Proxy.mounted (VueBpmn.vue:45)
My solution ideas and tried methods
What I want to achieve



Refer to the answer 1:

Hello , I am a little assistant who answers every question , So sorry , This time, you have to answer all your questions , The panel of technical experts timed out and did not answer for you


The number of times to answer all questions deducted from this question , Will answer with questions VIP Experience card (1 A chance to answer every question 、 Shopping malls buy physical books and enjoy 95 A discount ) It will be reissued to your account in the form of .


Because all questions must be answered VIP The experience card is only valid for 1 God , When you need it 【 Direct messages 】 Contact me , I'll reissue it for you .




Refer to the answer 2:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030224377577.html

Random recommended