formio / ngFormio

JSON powered form rendering library for AngularJS + Form.io.

Home Page:http://formio.github.io/ngFormio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot read property 'baseUrl' of undefined

hrz11 opened this issue · comments

commented

angular.js:14642 TypeError: Cannot read property 'baseUrl' of undefined
at new controller (formio.js:15713)
at Object.invoke (angular.js:5040)
at $controllerInit (angular.js:10960)
at nodeLinkFn (angular.js:9840)
at compositeLinkFn (angular.js:9149)
at compositeLinkFn (angular.js:9152)
at publicLinkFn (angular.js:9014)
at lazyCompilation (angular.js:9405)
at boundTranscludeFn (angular.js:9192)
at controllersBoundTransclude (angular.js:9959)

different line now 15713 :)
there may be more of those...

Might be fixed by pull request #413

commented

Jet another error:

TypeError: Cannot read property 'baseUrl' of undefined
at new formioComponentsProvider.register.controller (formio.js:17014)
at Object.instantiate (angular.js:5055)
at $controller (angular.js:10975)
at new controller (formio.js:18668)
at Object.invoke (angular.js:5040)
at $controllerInit (angular.js:10960)
at nodeLinkFn (angular.js:9840)
at angular.js:10248
at processQueue (angular.js:17000)
at angular.js:17044

Do you have a Select component selecting from a resource? Looks like that case may still need bulletproofing.

I'm building and testing a fix for that case. Will create pull request when it passes test.

Might be fixed by pull request #416

commented

yes, this is from Select component :)

Thanks!

Happy to help. Hope the fix works for you. I think I was only seeing the error in the builder preview.

commented

Looks ok now :)

Happy to hear that :)