I’ve the issue that mochapack doesn’t appear to work along with the fashion sources loader.
packages that appear to provide the issue:
- “@vue/cli-plugin-unit-mocha”: “~4.2.0”,
- “vue-cli-plugin-style-resources-loader”: “~0.1.4”
My vue.config.js
file:
const path = require("path");
module.exports = {
...
pluginOptions: {
"style-resources-loader": {
preProcessor: "scss",
patterns: [path.resolve(__dirname, "./src/assets/styles/*.scss")]
}
}
};
The only sass file that’s included by means of the above config:
@import "~vue-select/src/scss/vue-select.scss";
It appears to load the vue-select.scss
accurately however then when decoding this file it appears to unfastened its present listing and doesn’t discover the imported fashion.
Error log excerpt:
Module construct failed (from ./node_modules/sass-loader/dist/cjs.js):
SassError: Cannot discover stylesheet to import.
╷
1 │ @import "world/variables";
│ ^^^^^^^^^^^^^^^^^^
╵
/node_modules/vue-select/src/scss/vue-select.scss 1:9 @import
/src/elements/HelloWorld.vue 1:9
See full element error message and code:
https://github.com/petritz/food-calculator-web/runs/560575367