226
Views
8
Comments
Mismatched anonymous define() module when wrapping JavaScript libs

Hi All,

I am trying to create a custom module to wrap Form.io js into an OutSystems module. 

This works fine, however I have found that  when I navigate back on a screen which uses blocks within that module I will receive the following error. 

[ErrorScreen] Mismatched anonymous define() module: function(){ ...

This seems to be a very common occurrence for people trying to wrap JavaScript modules into Outsystems (see relevant links below), however I'm yet to see an explanation or solution to the problem.  

https://www.outsystems.com/forums/discussion/19739/performance-probe-javascript-error/

https://www.outsystems.com/forums/discussion/67921/error-when-navigating-away-from-a-screen-with-a-sankey-diagram-block/

2014-03-14 15-35-58
Bryan San Andres

I'm also experiencing this issue!  I hope we get a bump on this.

Can't proceed with our integration currently

UserImage.jpg
Anthony Phan

@Bryan SanAndres I have recently opened a support ticket with OutSystem and hoping to hear back form them this week. I will post updates and any resolution here. 

2019-11-06 17-40-51
Odairson Cardoso

Hi Anthony,

OutSystem replied to your ticket?

2022-08-30 10-18-37
Alessio Rivetti Silva

Hi Anthony Phan,

Did you have any updates that you could share with us please? Thank you!

2022-06-06 14-45-07
Rôney Rocha
Any update on this issue? this problem is appearing recently. Any tips to solve it?
UserImage.jpg
Anthony Phan

In my scenario the JavaScript library I was wrapping into an OS module used "lazy loading" to load modules when they were required, this does not play well with OutSystems module loading mechanism. I had to fork the open source repo and modify the source code to no use this method of loading modules to resolve the issue. 

I've since move away from using OutSystems as I found too many instances where I would run into these kinds of limitations with the platform that actually really made life harder as a developer. 

UserImage.jpg
R.

I'm also having the same problem since today

2019-11-06 17-40-51
Odairson Cardoso

Same problem here with my team. Any solution so far?

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.