The object used in ES6 is proxy proxy proxy, which makes read only unusable
And your question is?
vue3x，An exception occurred during use, $PKG read only
Please provide more context. What are you trying to do, how is bpmn-js involved, what does your setup look like?
Hi, I have the same problem in my vue 3 app with vue cli, when i try import any xml the following errors appear.
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 Object]')
When i comment 7912 line importXml works properly.
bpmn-js version: “8.5.0”
Any idea how i can solve this error ?
Hello, my question, like the one downstairs, I have tried. This error will appear in bpmn.js low version or high version.
My application scenario is the flow chart design on the web (vue3, ES6)
What does your development setup look like?
I also met the same problem, how to solve it
index.vue:101 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 Object]') at Proxy.Registry.getEffectiveDescriptor (index.esm.js:550) at Proxy.Moddle.getType (index.esm.js:768) at RootElementHandler.ElementHandler (index.esm.js:269) at new RootElementHandler (index.esm.js:526) at Reader.handler (index.esm.js:917) at Proxy.BpmnModdle.fromXML (index.esm.js:56) at BaseViewer.js:144 at new Promise (<anonymous>) at Proxy.importXML (BaseViewer.js:138) at Proxy.<anonymous> (CompatibilityUtil.js:33)
Using “markraw” to cancel the proxy object