This topic contains 1 reply, has 1 voice, and was last updated by archy_bold 8 years ago.
- Topic
Hi there.
I created a new action in my custom bundle to be used by the datagrid and added the following javascript to go with it:
123456789101112131415161718/*global define*/define(['oro/datagrid/action/model-action','oroui/js/delete-confirmation','jquery','orotranslation/js/translator','oroui/js/app/components/widget-component'], function (ModelAction, DeleteConfirmation, $, __, WidgetComponent) {'use strict';var DialogConfirmationAction;DialogConfirmationAction = ModelAction.extend({/* code here */});return DialogConfirmationAction;});With a requirejs.yml that looks as follows:
123config:paths:'oro/datagrid/action/dialog-confirmation-action': 'bundles/[bundle-name]js/datagrid/action/dialog-confirmation-action.js'It works absolutely fine on my local machine but as soon as I deploy it to our server, we get the following error in the browser.
12Uncaught Error: Mismatched anonymous define() module: function (e,t,i,n,o){/*code goes here*/}http://requirejs.org/docs/errors.html#mismatchThis is preventing the CRM from being used. I’ve tried rebuilding the assets and it’s still broken. Is there something I’m missing here? I’ve read up on the problems and I tried naming my module, but that caused a different error. Any idea what’s going on?
Thanks,
Simon
The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.