Bug #67446
closed![Author: Anonymous](/images/anonymous.png?1718153102)
TYPO3 7.2.0 - Backend JS: "Uncaught TypeError: require is not a function" in BE-Module
0%
Description
In my BE-MODULE always this javascript error is thrown by the core in the oldschool-iframe:
Uncaught TypeError: require is not a function
JS-Console:
<script type="text/javascript">
/*<![CDATA[*/
/*RequireJS-Module-TYPO3/CMS/Backend/LegacyCssClasses*/
require(["TYPO3/CMS/Backend/LegacyCssClasses"]);
/*RequireJS-Module-TYPO3/CMS/Backend/ClickMenu*/
require(["TYPO3/CMS/Backend/ClickMenu"]);
/*RequireJS-Module-TYPO3/CMS/Backend/ContextHelp*/
require(["TYPO3/CMS/Backend/ContextHelp"]);
It seems to a mistake output of some PHP-Code. Tested in Chrome and current FF.
Files
Updated by Benni Mack about 9 years ago
- Status changed from New to Needs Feedback
Hey,
could you share your extension / backend module please? In my custom / own backend modules there is no problem with the current latest version.
Updated by Anonymous about 9 years ago
- File foobar_0.0.0_201506151546.zip foobar_0.0.0_201506151546.zip added
- File 2015-06-15 15_51_02-DEV [TYPO3 CMS 7.2.0].jpg 2015-06-15 15_51_02-DEV [TYPO3 CMS 7.2.0].jpg added
Here is a Mock-up from my module called "Foobar". Base from current ExtensionBuilder from GIT. Same Error, see screen.
Updated by Alexander Opitz about 9 years ago
- Status changed from Needs Feedback to New
- Target version set to 7.4 (Backend)
Updated by Benni Mack about 9 years ago
- Status changed from New to Resolved
Have you noticed that there are two HTML tags in your backend module? Because you use <be.container> twice thus, including RequireJS loaded twice resulting in an error.
Updated by Anonymous about 9 years ago
Resolved - seems not.
Same code works in 6.2, so this is no solution "Do not use the frameworks viewhelper more than one time".
Why does the exception not handled by the viewhelper? This looks for a correct way to fix this.
Updated by Riccardo De Contardi almost 7 years ago
- Status changed from Resolved to Closed