formio / vue

Javascript Powered forms and JSON form builder for Vue.js
MIT License
119 stars 65 forks source link

Uncaught TypeError: Cannot read property 'namespace' of undefined #53

Closed lailapfit closed 3 years ago

lailapfit commented 3 years ago

I am currently using "vue-formio": "^4.0.7" without Typescript and coming across the 'namespace' error. I was able to fix the issue by editing Form.js line 144

from var namespace = _this.options.namespace || 'formio';

to var namespace = _this.hasOwnProperty('options') ? _this.options.namespace : 'formio';

When I pushed the code into production via vercel it is retrieving the current lib, is there a way to extend the Form.js setupForm function with my changes?

lailapfit commented 3 years ago

I was able to add my changes into my production build by using this fix via patch-package!

fermuch commented 3 years ago

I've just found this same error. Can we reopen this issue, as it is not fixed yet?