nibsirahsieu / SalvaJshrinkBundle

NOT MAINTAINED - This bundle integrate jshrink library as Assetic filter and twig extension
MIT License
32 stars 6 forks source link

Error after install #22

Open grekpg opened 6 years ago

grekpg commented 6 years ago

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

SManAT commented 5 years ago

Hi had the same Problem, make an update is fine now. It was a typo ;) can be closed ...

grekpg commented 5 years ago

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.
nibsirahsieu commented 5 years ago

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