Bug #53883

Mismatched anonymous define() module

Added by Alexander Schnitzler over 1 year ago. Updated over 1 year ago.

Status:Resolved Start date:2013-11-22
Priority:Should have Due date:
Assigned To:- % Done:

100%

Category:JavaScript
Target version:Base Distribution - 1.0 beta 1

Description

Using the javascript of foundation, requirejs does not work properly.

Uncaught Error: Mismatched anonymous define() module: function (){return e}
http://requirejs.org/docs/errors.html#mismatch require.js:8
B require.js:8
M require.js:15
(anonymous function) require.js:26

However, in the "frontend" my website just works fine, using neos the error occures and the whole interface of neos is not being loaded at all.


Related issues

related to TYPO3.Neos - Bug #47510: Content editing is broken when page uses RequireJS Resolved 2013-04-23
related to Base Distribution - Task #48074: Neos backend no conflict mode Resolved 2013-05-08

Associated revisions

Revision 856803b4
Added by Rens Admiraal over 1 year ago

[BUGFIX] Neos backend breaks if the frontend uses requirejs

When the frontend of a website is using requirejs the backend of
Neos does not load, or the content editing does not work. This change
puts all Neos requirejs configuration in the 'neos' context and
wraps requirejs to prevent a double declaration of requirejs.

It also changes the way requirejs is included as the data-main
attribute will not work if requirejs is already defined in the
frontend.

Change-Id: I166593bd6d53a24b4f65e29c2622a4a9f437d2d7
Fixes: #47510
Fixes: #48074
Fixes: #53883
Releases: master
Reviewed-on: https://review.typo3.org/26487
Reviewed-by: Rens Admiraal
Tested-by: Rens Admiraal
Reviewed-by: Robert Lemke

History

#1 Updated by Gerrit Code Review over 1 year ago

  • Status changed from New to Under Review

Patch set 5 for branch master of project Packages/TYPO3.Neos has been pushed to the review server.
It is available at https://review.typo3.org/26487

#2 Updated by Gerrit Code Review over 1 year ago

Patch set 6 for branch master of project Packages/TYPO3.Neos has been pushed to the review server.
It is available at https://review.typo3.org/26487

#3 Updated by Gerrit Code Review over 1 year ago

Patch set 7 for branch master of project Packages/TYPO3.Neos has been pushed to the review server.
It is available at https://review.typo3.org/26487

#4 Updated by Rens Admiraal over 1 year ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

Also available in: Atom PDF