Cannot use environment variables with Vitejs

I cannot access my environment variable prefixed properly "VITE_APP_TITLE" inside my code. I try to access it with "import.meta.env.VITE_APP_TITLE" in typescript. Do you have any ...

How to use FunctionDirective in Vue3?

I find in Vue3 Type Declaration about Directive, it is this export declare type Directive<T = any, V = any> = ObjectDirective<T, V> | FunctionDirective<T, V>; I believe most people ...

Use vue3-cookies in custom plugin

I want to use vue3-cookies in my custom plugin, but whatever I do I keep getting undefined. MyPlugin.js export default { install: (app, options) => { app.config.globalProperties.$...

Global Sass Import & Usage - Nuxt 3 Static Assets

I am trying to import a global Sass stylesheet from the /assets directory and use stuff like variables and mixins defined there throughout the components. My nuxt.config.ts looks like this currently: ...

How to safely render tokenized HTML in Vue?

I have a text that contains certain tokens that need to be replaced into links. For example: @peter and @samantha went on a date in #Paris to see the movie #HouseOfGucci The result should be: <a ...

How to update or show data of array in vue-cli

I have created a table which display the product data that was entered by the user and I have placed a column for operations, delete, modify, and details, but what i don't know is how can I edit or ...

Vue3 class component access props

i use vue3 with class-component in typescript my class looks like: import {Options, Vue} from "vue-class-component"; @Options({ props: { result: Object } }) export default class ...

Vue 3 How update sum of all subtotals on change

I have an app that collects data from a form then pushes a new counter object to an array (counters) then renders a counter component that can increment and decrement to update a subtotal property for ...

Alias for external links in ( vuejs or vuepress )

Question: What is the proper way to define an alias for external links in vuepress2 or vuejs? Problem: I have a documentation site hosted in github pages, I want to link some source files to ...

I can't get FETCH() data from API on VUE JS 3

I'm trying to obtain data from a SOAP API. My queries worked fine by curl/soap ui/postman. But I didn't manage to obtain data from fetch (using no-coars because I dev on local): Basic config is: ...