Encountering an issue with displaying plugins properly within <script>
and <template>
tags on WebStorm.
Firstly, let's take a look at my files and configuration:
tsconfig.config.json
{
"extends": "@vue/tsconfig/tsconfig.node.json",
"include": ["vite.config.*", "vitest.config.*", "cypress.config.*", "playwright.config.*", "src/i18n.d.ts"],
"compilerOptions": {
"composite": true,
"types": ["node"]
}
}
package.json
{
"name": "my-app",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "vite",
...
},
"dependencies": {
"pinia": "^2.0.28",
"vue": "^3.2.45",
...
},
"devDependencies": {
"@rushstack/eslint-patch": "^1.1.4",
...
}
}
Project structure https://i.sstatic.net/il2IV.png
Made a custom i18n plugin for testing purposes in a clear Vue project setup.
...In template I receive a warning, but it works during runtime. However, including the plugin in the script section causes an error.
I'm puzzled by this situation. Any assistance would be greatly appreciated :)