Skip to content

Conversation

akerouanton
Copy link
Contributor

Prior to this fix when the less loader isn't enabled, the scss loader config is rewritten by mistake, leading to this error:

Module build failed: Error: Cannot process lang="less" inside src/js/Player.vue: the less-loader is not activated.

I also fix a functional test case for Vue.js. Actually, the tests check if the first error thrown by webpack is about missing less loader. But the fixtures needs these loaders in the following order: scss, sass and finally less. Since there's no other loader than the VueJs one loaded in this test case, errors should be in the same order.

Prior to this fix when the less loader isn't enabled, the scss loader config is rewritten by mistake, leading to this
error:

> Module build failed: Error: Cannot process lang="less" inside src/js/Player.vue: the less-loader is not activated.

I also fix a functional test case for Vue.js. Actually, the tests check if the first error thrown by webpack is about
missing less loader. But the fixtures needs these loaders in the following order: scss, sass and finally less.
Since there's no other loader than the VueJs one loaded in this test case, errors should be in the same order.
@weaverryan
Copy link
Member

Ah, thank you @NiR-!

@weaverryan weaverryan merged commit 2165a54 into symfony:master Jul 12, 2017
weaverryan added a commit that referenced this pull request Jul 12, 2017
This PR was merged into the master branch.

Discussion
----------

Fix inability to use scss loader with Vue.js

Prior to this fix when the less loader isn't enabled, the scss loader config is rewritten by mistake, leading to this error:

> Module build failed: Error: Cannot process lang="less" inside src/js/Player.vue: the less-loader is not activated.

I also fix a functional test case for Vue.js. Actually, the tests check if the first error thrown by webpack is about missing less loader. But the fixtures needs these loaders in the following order: scss, sass and finally less. Since there's no other loader than the VueJs one loaded in this test case, errors should be in the same order.

Commits
-------

2165a54 Fix inability to use scss loader with Vue.js
@akerouanton akerouanton deleted the fix-vuejs-scss branch July 13, 2017 12:55
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

Successfully merging this pull request may close these issues.

3 participants