Hola,
Estoy tratando de introducir en mi proyecto tu sistema para login con token, el bakcend funciona ya en .Net core pero con vue + pinia estoy obteniendo este error:
-
TypeError: Cannot read properties of undefined (reading 'post')
![imagen](https://user-images.githubusercontent.com/107309094/208978190-978073b0-8246-4651-843d-df42fa6bd7d5.png)
![imagen](https://user-images.githubusercontent.com/107309094/208978310-7380603d-ff76-4dc5-b148-342135ff6d09.png)
¿me falta algo? Da el error al ejecutar "fetchWrapper.post"
Mi package.json es esl siguiente:
{
"name": "vue-solerman-bar",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build",
"lint": "vue-cli-service lint"
},
"dependencies": {
"@mdi/font": "5.9.55",
"@popperjs/core": "^2.11.5",
"@quasar/extras": "^1.0.0",
"axios": "^1.1.3",
"core-js": "^3.8.3",
"moment": "^2.29.4",
"pinia": "^2.0.22",
"quasar": "^2.11.1",
"roboto-fontface": "*",
"vee-validate": "^4.7.3",
"vue": "^3.2.45",
"vue-fetch": "^2.0.0",
"vue-router": "^4.1.6",
"webfontloader": "^1.0.0",
"yup": "^0.32.11"
},
"devDependencies": {
"@babel/core": "^7.12.16",
"@babel/eslint-parser": "^7.12.16",
"@vue/cli-plugin-babel": "~5.0.0",
"@vue/cli-plugin-eslint": "~5.0.0",
"@vue/cli-plugin-router": "~5.0.0",
"@vue/cli-service": "~5.0.0",
"eslint": "^7.32.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-vue": "^8.0.3",
"node-sass": "^7.0.1",
"prettier": "^2.4.1",
"sass": "1.32.12",
"sass-loader": "^13.0.0",
"vue-cli-plugin-quasar": "~5.0.1",
"vue-cli-plugin-vuetify": "~2.5.1",
"webpack-plugin-vuetify": "^2.0.0-alpha.0"
}
}