Skip to content

Invalid option "resolveUrlLoader" passed to enableSassLoader(). Valid keys are resolve_url_loader #226

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

Closed
metaer opened this issue Dec 17, 2017 · 6 comments

Comments

@metaer
Copy link

metaer commented Dec 17, 2017

I add

    .enableSassLoader(function(sassOptions) {}, {
        resolveUrlLoader: false
    })

When I try run command:
yarn run encore dev

I get

Invalid option "resolveUrlLoader" passed to enableSassLoader(). Valid keys are resolve_url_loader

Screenshot from this documentation:
http://symfony.com/doc/current/frontend/encore/bootstrap.html
c2fea9486b

If I change resolveUrlLoader to resolve_url_loader everything is ok.

@Lyrkan
Copy link
Collaborator

Lyrkan commented Dec 17, 2017

Hi @metaer,

Which version of Encore are you using? resolve_url_loader has been replaced by resolveUrlLoader in v0.15.0 by #159.

@metaer
Copy link
Author

metaer commented Dec 17, 2017

Here is strings from my package.json:

  "name": "@symfony/webpack-encore",
  "version": "0.12.0",

I run
composer require encore
with symfony flex

@Lyrkan
Copy link
Collaborator

Lyrkan commented Dec 17, 2017

The Flex recipe looks outdated, it uses ^0.12.0 which only allows versions matching 0.12.*.

Try running yarn upgrade @symfony/webpack-encore to get the latest version (0.17.0).

@metaer
Copy link
Author

metaer commented Dec 17, 2017

Thank you. Now resolveUrlLoader works.
Should I open new issue "Flex recipe is outdated" ?

@Lyrkan
Copy link
Collaborator

Lyrkan commented Dec 17, 2017

Great :)

You can either open an issue in the symfony/recipes repository or directly send a PR that increments the version number there:

https://github.com/symfony/recipes/blob/5314397ba6743c9defb3ecf467e7bf34bff66290/symfony/webpack-encore-pack/1.0/package.json#L3

@Lyrkan Lyrkan closed this as completed Dec 17, 2017
metaer added a commit to metaer/recipes that referenced this issue Dec 18, 2017
@fabpot
Copy link
Member

fabpot commented Dec 18, 2017

@weaverryan Wouldn't it make sense to release 1.0 now?

markovlatkovic pushed a commit to markovlatkovic/recipes that referenced this issue May 24, 2024
markovlatkovic pushed a commit to markovlatkovic/recipes that referenced this issue May 24, 2024
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

3 participants