SalvaJshrinkBundle
SalvaJshrinkBundle copied to clipboard
Error after install
Argument 1 passed to Salva\JshrinkBundle\Twig\Node\JshrinkNode::__construct() must be an instance of Twig_NodeInterface, instance of Twig_Node given, called in /application/vendor/salva/jshrink-bundle/Twig/TokenParser/JshrinkTokenParser.php on line 52
Hi had the same Problem, make an update is fine now. It was a typo ;) can be closed ...
I install now i new app symfony 4 - same result
Argument 1 passed to Salva\JshrinkBundle\Twig\Node\JshrinkNode::__construct() must be an instance of Twig_NodeInterface, instance of Twig\Node\Node given, called in /application/vendor/salva/jshrink-bundle/Twig/TokenParser/JshrinkTokenParser.php on line 52
composer require salva/jshrink-bundle
Using version ^1.1 for salva/jshrink-bundle
./composer.json has been updated
Loading composer repositories with package information Updating dependencies (including require-dev) Restricting packages listed in "symfony/symfony" to "4.3.*"
Prefetching 2 packages 🎶
- Downloading (100%)
Package operations: 2 installs, 0 updates, 0 removals
- Installing tedivm/jshrink (v1.3.3): Loading from cache
- Installing salva/jshrink-bundle (1.1.2): Loading from cache
Package symfony/webpack-encore-pack is abandoned, you should avoid using it. Use symfony/webpack-encore-bundle instead.
Writing lock file
Generating autoload files
> ComponentInstaller\Installer::postAutoloadDump
Compiling component files
Executing script cache:clear [OK]
Executing script assets:install --symlink --relative public [OK]
is not possible to install "salva/jshrink-bundle": "^1.1.4",
Restricting packages listed in "symfony/symfony" to "4.3.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- Installation request for salva/jshrink-bundle ^1.1.4 -> satisfiable by salva/jshrink-bundle[1.1.4].
- salva/jshrink-bundle 1.1.4 requires symfony/framework-bundle ^2.7|^3.0 -> no matching package found.
Hi all, apologize for being not responsive, i'm not using this bundle anymore.
Kindly use this repo https://github.com/codysnider/SalvaJshrinkBundle, Its seem actively maintained.
Regards