Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Class "ScssPhp\ScssPhp\OutputStyle" not found #87

Open
mweber1973 opened this issue Oct 31, 2024 · 5 comments
Open

Class "ScssPhp\ScssPhp\OutputStyle" not found #87

mweber1973 opened this issue Oct 31, 2024 · 5 comments

Comments

@mweber1973
Copy link

On Typo3 V 13.0.0 we get the error "Class "ScssPhp\ScssPhp\OutputStyle" not found" in frontend after installing the extension (V 13.0.1)

Any ideas?

@pvweb
Copy link

pvweb commented Nov 12, 2024

We got the same error at our TYPO3 v13 project.

I helped myself with uploading the scssphp project (https://github.com/scssphp/scssphp) to the resources folder of my custom extension and including it via require_once from the ext_localconf.php, like recommended in the documentation for non-composer applications (https://scssphp.github.io/scssphp/docs/).

@Wintermilch
Copy link

Just encoutered this as well. This release adds the library via composer.json but this doesn't seem to work for legay based installations:

"scssphp/scssphp": "^1"

Adding the 1.13.0 release of scssphp like @pvweb described solved the issues. The include file can be copied from the v11 branch: https://github.com/WapplerSystems/ws_scss/blob/release/v11/Resources/Private/scssphp/scss.inc.php

@isoskic
Copy link

isoskic commented Nov 27, 2024

you can download the needed files from https://scssphp.github.io/scssphp/docs/ and place them into your own extension into /Resources/Private/Vendor/ and include it like this in your ext_localconf.php

if (!class_exists(\ScssPhp\ScssPhp\Version::class, true)) {
    require_once ExtensionManagementUtility::extPath($extKey) . 'Resources/Private/Vendor/scssphp/scss.inc.php';
}

in case of updates:
you will find the current version number in /Resources/Private/Vendor/scssphp/src/Version.php

@mweber1973
Copy link
Author

Sorry, I was only able to try this today

now the frontend runs into this error

WapplerSystems\WsScss\Compiler::compileFile(): Argument #5 ($outputStyle) must be of type string, ScssPhp\ScssPhp\OutputStyle given, called in /..../typo3conf/ext/ws_scss/Classes/Hooks/RenderPreProcessorHook.php on line 153

any ideas?

@mweber1973
Copy link
Author

Okay, my last message is obsolete

You must use phpscss V1.x.x

The Version 2 is not (yet ?) supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants