ERROR Failed to compile with 1 errors 8:21:57
error in ./src/App.vue?vue&type=style&index=0&lang=stylus&
Module build failed (from ./node_modules/stylus-loader/dist/cjs.js):
ValidationError: Invalid options object. Stylus Loader has been initialized using an options object that does not match the API schema.
- options has an unknown property 'preferPathResolver'. These properties are valid:
object { stylusOptions?, sourceMap?, webpackImporter?, additionalData? }
at validate (P:\Vue\SOCSET\New project 4 — копия\technical-task\node_modules\stylus-loader\node_modules\schema-utils\dist\validate.js:104:11)
at Object.stylusLoader (P:\Vue\SOCSET\New project 4 — копия\technical-task\node_modules\stylus-loader\dist\index.js:24:29)
@ ./node_modules/vue-style-loader??ref--11-oneOf-1-0!./node_modules/css-loader/dist/cjs.js??ref--11-oneOf-1-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--11-oneOf-1-2!./node_
modules/stylus-loader/dist/cjs.js??ref--11-oneOf-1-3!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/App.vue?vue&type=style&index=0&lang=stylus& 4:14-423 14:3-18:5 15:22-
431
@ ./src/App.vue?vue&type=style&index=0&lang=stylus&
@ ./src/App.vue
@ ./src/main.js
@ multi (webpack)-dev-server/client?http://192.168.1.60:8081&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js
{
"name": "SVNC",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"core-js": "^3.6.5",
"devextreme": "^20.1.8",
"materialize-css": "^1.0.0-rc.2",
"register-service-worker": "^1.7.1",
"vue": "^2.6.11",
"vue-router": "^3.2.0",
"vue-sidebar-menu": "^4.7.3",
"vuesax": "^3.12.2",
"vuetify": "^2.3.14",
"vuex": "^3.4.0"
},
"devDependencies": {
"@nuxtjs/vuetify": "^1.11.2",
"@vue/cli-plugin-babel": "~4.4.0",
"@vue/cli-plugin-pwa": "~4.4.0",
"@vue/cli-plugin-router": "~4.4.0",
"@vue/cli-plugin-vuex": "~4.4.0",
"@vue/cli-service": "~4.4.0",
"node-sass": "^4.12.0",
"sass-loader": "^8.0.2",
"vue-template-compiler": "^2.6.11"
}
}
<iframe :src="pdfUrl" v-if="pdfUrl" v-on:load="hideLoadPanel"></iframe>
copyText () {
if (item) {
document.getElementById("copy-item").select();
try {
let successful = document.execCommand('copy');
let msg = successful ? 'successful' : 'unsuccessful' ;
console.log(msg);
} catch (e) {
console.log("error");
}
}
}