Actions
Bug #95799
closedRequireJS: relative path broken
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend JavaScript
Target version:
-
Start date:
2021-10-27
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
11
PHP Version:
Tags:
Complexity:
Is Regression:
Yes
Sprint Focus:
Description
Using a relative path to a module does not work anymore
require([ 'jquery', '../typo3conf/ext/solr/Resources/Public/JavaScript/Chart.js' ], function ($, Chart) {
It wants to load /typo3/module/searchbackend/../typo3conf/ext/solr/Resources/Public/JavaScript/Chart.js
Updated by Christoph Lehmann about 3 years ago
Found a solution
require([ 'jquery', 'TYPO3/CMS/Solr/Chart' ], function ($, Chart) {
Please close the issue
Updated by Benni Mack about 3 years ago
- Status changed from New to Closed
Thanks for sharing how you solved it!
Actions