The data properties are not able to use into other script parts

This issue has been created since 2022-08-21.

Hi there,

I'm migrating a project from v2 to v3 and I just to noticed that the data properties defined are not available to use them in the methods, the typescript compiler highlights this uses as error, so what I tried to move them to setup function and happen the same.

image

image

image

It seems that this just could access to the same object where declared but it doesn't have access to another functions or methods as in this case to data properties.

{
  "dependencies": {
    "@fortawesome/fontawesome-free": "^6.1.2",
    "pinia": "^2.0.17",
    "vue": "^3.2.37",
    "vue-router": "^4.1.3"
  },
  "devDependencies": {
    "@rushstack/eslint-patch": "^1.1.4",
    "@types/jsdom": "^20.0.0",
    "@types/node": "^16.11.47",
    "@vitejs/plugin-vue": "^3.0.1",
    "@vue/eslint-config-prettier": "^7.0.0",
    "@vue/eslint-config-typescript": "^11.0.0",
    "@vue/test-utils": "^2.0.2",
    "@vue/tsconfig": "^0.1.3",
    "cypress": "^10.4.0",
    "eslint": "^8.21.0",
    "eslint-plugin-cypress": "^2.12.1",
    "eslint-plugin-vue": "^9.3.0",
    "jsdom": "^20.0.0",
    "npm-run-all": "^4.1.5",
    "prettier": "^2.7.1",
    "sass": "^1.54.5",
    "sass-loader": "^13.0.2",
    "start-server-and-test": "^1.14.0",
    "typescript": "~4.7.4",
    "vite": "^3.0.4",
    "vitest": "^0.21.0",
    "vue-tsc": "^0.39.5"
  }
}

vue-bot wrote this answer on 2022-08-22

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

More Details About Repo
Owner Name vuejs
Repo Name vue
Full Name vuejs/vue
Language TypeScript
Created Date 2013-07-29
Updated Date 2022-09-27
Star Count 199644
Watcher Count 6098
Fork Count 32848
Issue Count 587

YOU MAY BE INTERESTED

Issue Title Created Date Comment Count Updated Date
ko/docs/mariadb/08b4369556b85bfce4ce0c4996d8f15b48c9a49c/b3 0 2022-01-06 2022-08-27
The error of h3 geometry generation 1 2021-07-08 2022-08-21
How to use python match_wkt to match map with timestamps? 2 2021-07-09 2022-08-02
ETM - Possibility of using KeyedVectors input for pre-trained W2V embeddings 8 2021-10-14 2022-08-20
[Bug]: `TestCubeKV_DedupSetBatch` failed as a result of race in `matrixcube` 2 2022-05-11 2022-06-23
[Bug]: unittest panic TestAppend2 1 2022-05-11 2022-06-25
SIOCSIFFLAGS: Operation not permitted Error for wireless request "Set Mode" (8B06) : SET failed on device wlan0 ; Operation not permitted. SIOCSIFFLAGS: Operation not permitted 2 2021-05-02 2022-07-16
Orchestration with axios-cache-adapter 0 2021-07-22 2022-07-24
Change RPS on the fly 0 2021-12-29 2022-06-29
Was anyone able to mock this library with Jest? 0 2022-01-17 2022-07-20
Dockerfile: calendso/apps/web/prisma missing in submodule 20 2022-02-24 2022-09-17
Add keybinding for ZSH 1 2021-12-03 2022-08-28
Save and restore current theme 6 2021-12-02 2022-07-16
Broken variable substitution for `MAIL_FROM_NAME` 1 2020-12-14 2022-09-05
[improvement] Persist settings separate from document 3 2022-01-03 2022-07-28
Need to find unique identifier to identify mail thread between 2 mailboxes 3 2021-10-12 2022-09-26
PEP 487 – Simpler customisation of class creation 0 2022-05-11 2022-09-06
ValueError: Buffer dtype mismatch, expected 'int_t' but got 'long long' 16 2020-09-23 2022-08-26
Allow updating the available font list 1 2019-06-22 2022-04-12
Place dynamic body on top of static body, dynamic body moves unpredictably for several frames? 2 2020-09-15 2022-09-03
Stripe `Sync Current Transactions` throws error 0 2022-08-16 2022-08-09
Broken link to samples in the main readme 4 2022-01-29 2022-08-19
🎉 Release a new version of the accessible autocomplete 0 2022-01-11 2022-09-20
[UX Review] SAML IdP details: "Endpoints" and "Service provider entity ID" fields are missing 0 2022-01-25 2022-09-09
> Could not find com.inuker.bluetooth:library:1.4.0. 0 2021-08-01 2022-09-14
what is the ADB Command for retrieving Bluetooth version of the android mobile phones ? 1 2022-04-01 2022-09-14
BleWriteRequest中startWrite的问题 0 2021-11-21 2022-09-14
add address santizer testing in github actions 0 2021-01-20 2022-08-17
Feature Request JSON serializer support for AZStd::any (and AZStd::variant) 1 2022-07-22 2022-09-23
Invalid typecast applied in Add type cast to assignment code action 0 2021-12-21 2022-07-24
File System Uploader - Backup 0 2022-07-04 2022-08-06
Please implement an "udp-ping" as check, too 0 2021-12-22 2022-09-17
Set up Discussions 1 2021-01-27 2022-01-08
Plotly date formatting for English science blogs 6 2021-10-28 2022-08-07
Aqara roller shade companion E1 7 2022-05-16 2022-09-26
Mandrill Driver 0 2021-04-29 2022-01-07
Add option to remove location data from telemetry events 2 2020-10-13 2022-09-19
Strange bug using dset with mobx 0 2021-10-07 2022-09-13
Online demo is not available duo to CORS 3 2021-04-05 2022-09-26
Notifications broken 9 2021-07-23 2022-09-13
Ubuntu on WSL 2 unable to install 5 2021-08-20 2022-09-06
Finding dependencies of materialized views 5 2020-06-05 2022-09-04
v_extended_table_info.sql Size column does not handle AUTO distribution 0 2019-05-10 2022-08-27
missing smb collection 0 2022-08-19 2022-08-15
Update (3.10.0) broke sticky again 1 2022-01-28 2022-09-14
Targets stated in TASK_INPUT.md does not match preprocessing code. 1 2021-07-28 2022-09-16
google_apigee_instance creations seem to need to be serialized 3 2022-01-25 2022-08-31
chore(deps): bump hosted-git-info from 2.8.8 to 2.8.9 1 2021-05-11 2022-08-17
calculating layout does not set all properties 0 2022-08-27 2022-09-26
Compiler does not infer string type for nameof pattern 4 2022-06-24 2022-09-21