Project

General

Profile

Actions

Bug #95799

closed

RequireJS: relative path broken

Added by Christoph Lehmann about 3 years ago. Updated about 3 years ago.

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

Actions #1

Updated by Christoph Lehmann about 3 years ago

Found a solution

require([
  'jquery',
  'TYPO3/CMS/Solr/Chart'
], function ($, Chart) {

Please close the issue

Actions #2

Updated by Benni Mack about 3 years ago

  • Status changed from New to Closed

Thanks for sharing how you solved it!

Actions

Also available in: Atom PDF