I have working code in an org without a namespace. Trying to migrate the code to an org with a namespace seems to be causing a lot of trouble on the lightning side. Everything in APEX in fine.
Basically, this bit of code works fine :
<aura:attribute name="InvoicableData" type="CreateInvoiceController.Invoice_Wrapper"/>
Where Invoice_Wrapper is an inner class of CreateInvoiceController.
What is not working though, is whenever a namespace is added. I keep on getting the same error which is :
Failed to save undefined: No TYPE named apex://CreateInvoiceController.Invoice_Wrapper found : [markup://azurgroup:CreateInvoice]
I tried adding the namespace to the attribute (following this salesforce article) but the same error keep on appearing.
I had a similar problem in visualforce which could be solved by saving the class directly over using the Developer Console but with Lightning I currently have no choice.
I read somewhere that taking the class outside would probably solve the problem, but since its working without the namespace there must be something silly I am missing.
Anyone else had a similar problem?