messageOriginal: Can't find stylesheet to import.
╷
2 │ @use 'mixins' as m;
│ ^^^^^^^^^^^^^^^^^^
╵
- 2:1 root stylesheet
relativePath: bitrix/templates/default/components/bitrix/catalog.section/products-list/style.scss
domainEmitter: [object Object]
domainThrown: false
@use '../../../../../../../css/scss/vars' as v;
@use 'mixins' as m;
<?
// $vendor = $_SERVER['DOCUMENT_ROOT'].'/local/vendor/autoload.php';
// if(file_exists($vendor)){
// require_once $vendor;
// }
//require_once($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/start.php");
use Bitrix\Main;
Main\EventManager::getInstance()->addEventHandler(
'yngc0der.oauth2server',
'OnScopesLoad',
static function (Main\Event $event): Main\EventResult {
return new Main\EventResult(Main\EventResult::SUCCESS, [
'read' => 'Read site data',
'write' => 'Write site data',
]);
}
);
CModule::AddAutoloadClasses(
'',
array(
"" => $_SERVER["DOCUMENT_ROOT"] . "/local/lib/",
"OpenApi\\" => $_SERVER["DOCUMENT_ROOT"] . "/local/vendor/autoload.php"
)
);
сработало на loadPaths