Issue I am developing VueJS / Express applications, getting into more advanced web dev than I’ve done before. I use VSCode, and develop the back end and front end in the same project. I am able to use VSCode debugger
Continue readingTag: vue.js
Long polling in Vue.js and Vuex that's independent of components' lifecycle, where to store hot observables for "unsubscribe"?
Issue Problem: Having started multiple long-polling streams that need to persist throughout the app lifecycle (regardless of the lifecycle of individual components), I’m looking for a way to unsubscribe in response to various events (e.g. route change, but not limited
Continue readingLoading data to store in Vue not working when routing from URL (works when clicking on a button)
Issue Sorry for the somewhat clumsy wording of the question. I’m a bit uncertain how to phrase it perfectly so feel free to suggest an alteration. I have a menu system where clicking on a link loads data to the
Continue readingVue.js redirection to another page
Issue I’d like to make a redirection in Vue.js similar to the vanilla javascript window.location.href = ‘some_url’ How could I achieve this in Vue.js? Solution If you are using vue-router, you should use router.go(path) to navigate to any particular route.
Continue readingVue cloning issue
Issue I am learning vue and one of the things I would like to do is to clone elements. I was playing with this code: var multiple = new Vue({ el: ‘#vue’, data: { }, methods: { cloneWidget(e) { let
Continue readingvite: Adding static assets(with cache busting) to the build
Issue I have large static files which should be busted with a hash for HTTP-caching. If I put them into the public directory, vite only copies them without appending a hash to the filenames. If I put them into the
Continue readingUse Wepack for Client only in strongloop-loopback
Issue I want to use webpack bundling for only client part of Strongloop Loopback project (I want to use vueJs in client or frontend). I’ve been looking at loopback-webpack-plugin. As there is no proper documentation for it, I am unable
Continue readingApply a css style to an interpolation parameterusing vue-i18n
Issue I’m using vue-i18n in order to add the internalization support to my application. I’m not able to understand if it’s possible to apply a style to a specific interpolation parameter. E.g. Suppose that I have this title: Hello Bob,
Continue reading.vue file syntax coloring doesn't work in pyCharm
Issue enter image description here Hi. I have problem with colouring .vue file syntax in my pyCharm. The version of pyCharm is 2018.1.4 . Vue plugin is intalled, settings for javascript language is ECMASript 6. Any idea what I’m doing
Continue readingHow can I enable syntax highlighting for .vue files in Atom?
Issue I’m starting up with Vue.js. The first problem I’ve run into is that my IDE (Atom) doesn’t beautify my .vue files. It’s all just white text. How can I make Atom highlight .vue files properly? Solution language-vue package adds
Continue readingPrism not working inside Vue component
Issue I need source code highlighting. I am using Prism. I tried to paste this code in root of app and it was highlighted successfully: <div id=”app”> <div class=”MainContainer”> <div class=”Header”> <a href=”#”>past-code</a> </div> <component v-bind:is=”currentView”></component> <code class=”language-dart”>void main() {
Continue readingSyntax Highlighting for HTML inside x-template script tags in Sublime Text 3
Issue I recently upgraded to the newest build of sublime text (Version 3.1.1 Build 3176) and have lost syntax highlighting for html contained inside tags. For context, I’m using scripts of type x-template to create Vue.js components inside a file
Continue readingVue3 : How to override function with the composition API?
Issue Let’s say we have a compasable function like below: // composable/useShareComp.ts export function useShareComp() { const toto = "hey"; const tata = ref(0); function utilMethod() { console.log("Util Méthod !!"); } function mainMethod() { console.log("Main Méthod !!"); console.log("should call the
Continue readingVue.js bind id to onclick function
Issue I have a Vue template that loops through an array and creates a table. Each item in the table also gets a button that I want to bind a click event to, passing in a token that will be
Continue readingTemplate engine + Front end framework
Issue I apologize if this is a duplicate, but I honestly didn’t find a similar enough question (or more specifically, answer) I am working a project right now that involves using Twig template engine AND Vue.js on the front end.
Continue readingVueJS with HAML/Jade/Pug-like templating
Issue I’m using both Vue.js and HAML in my current project. The templates are parsed by HAML, converted into HTML, then parsed by Vue. For instance: #pagecontent.nonscrolling %h2 Demand forecasts %label{ for:”location-type” } Select location type %select.form-control#location-type{ v-model:”locationType” } %option{
Continue readingWhat's the use of <template> within a <template> in VueJS 2?
Issue I’m trying to understand the use case of <template> and it’s functions. Having referenced the docs, I’m still left fairly confused. Considering the following code in any.vue file: <template> <div class="top-right links"> <!– Why use <template> here instead of
Continue readingWhat's the use of <template> within a <template> in VueJS 2?
Issue I’m trying to understand the use case of <template> and it’s functions. Having referenced the docs, I’m still left fairly confused. Considering the following code in any.vue file: <template> <div class="top-right links"> <!– Why use <template> here instead of
Continue readingRating-stars component vuejs2
Issue I have an integral number from one to five and I should be able to print the number of stars (using FontAwersome) based on that number. What can I do? I have to use VueJS 2 Solution One simple
Continue readingHow to hide column in Ag Grid?
Issue I am fetching data from a database and filling it by adding a manual action button column into Ag-Grid. Now, the first columns consist of those action buttons and 2nd column contains _id I want to hide that second
Continue readingOkta Not Redirecting due to insecure connection
Issue I got a request from the partner website to establish SSO with them and they provided their OKTA keys to us. Vue.use(Auth, { issuer: ‘https://{theirURL}.com/’, clientId: ‘{theirCliendId}’, redirectUri: ‘http://localhost:8080/auth/callback’, scope: ‘openid profile email’ }) let token = {}; const
Continue readingHow to disable Single sign-on (SSO) with MSAL.js?
Issue I have a issue with MSAL and SSO. I want to disable Single sign-on (SSO) for an intranet Vue 3 SPA application. SPA is using MSAL.js. When the user first logged in an authorized account (which is user account
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to get rid of CORS error in Nuxt/SSR?
Issue So, I made a simple api request using Nuxt/SSR. I have cities and categories. Each city has a list of categories. To fetch cities I have to use https://api/cities and to get categories I should use https://api/cities?id store/cities.js export
Continue readingHow to properly render html conditionally based on screen size in conjunction with ssr in vue/nuxt
Issue Let’s say i have markup to be rendered only for desktop via v-if. If it’s mobile it should render something v-else. I am using the package vue-mq which allows for setting a default breakpoint which should be used for
Continue readingNuxtJS Page is created twice
Issue I am currently facing an Issue in NuxtJS where a method is called twice and a request is therefore sent twice. This happens in a page and the method which is called twice is created(). I open the page
Continue readingNuxtJS change query params and reload page
Issue I have a route in my NuxtJS application that accept query parameters. I’m trying to implement a logic that allow the user to change the query parameters and reload the page. I tried: // this does not work because
Continue readingHow to increase speed performance in Nuxt with SSR
Issue How we can increase the speed performance in Nuxt with SSR for the following points. Reduce unused JavaScript Avoid serving legacy JavaScript to modern Minimize main-thread work Reduce JavaScript execution time Avoid enormous network payloads Solution Pretty generic questions,
Continue readingHow does Nuxt.js Server Side Rendering Work?
Issue I mostly work with Next.js for web projects. Work demands I work on a project that uses Nuxt.js (v2). I got up to reading on Nuxt. From pouring over the documentation for the last couple of days, there are
Continue readingLaravel 8, Vue 3 with Inertiajs got error while ssr setup
Issue I followed all the server-side rendering steps on inertia website docs, and installed all dependencies, but couldn’t manage to set up this with Laravel 8 and Vue 3. Got this kind of error: [Vue warn]: Unhandled error during execution
Continue readingVue async component SSR rehydration
Issue Using Vue async components with SSR is causing rehydration on page refresh. Is there a way not to cause components update without reason? Markup from SSR and on client is the same. https://v2.vuejs.org/v2/guide/components-dynamic-async.html Solution When using dynamically loaded components
Continue readingHow to set InnerText with directive in SSR Vue/Nuxt
Issue I want to port my vue directive to also render server side. client side: mydirective(el,binding,vnode){ el.innerText = vnode.context.$data.points } What i have working so far in nuxt.config.js: render: { bundleRenderer: { directives: { mydirective(node, binding){ var points = node.context.$data.points
Continue readingVue + Express(NestJS) Impossible task, You are using the runtime-only build of Vue where
Issue It’s making it impossible for me to add Vue as a view system to a framework called Nest with Express. I didn’t think that adapting Vue was so complicated. That’s why I’m here so that you can guide me
Continue readingVue/Nuxt: trying to understand SSR
Issue I’ve used Vue as a client-side library for years but I unfortunately never dove into server-side rendering, or understand it much, for that matter. I was watching a few tutorials on it where it gave an example of normal
Continue readingHow to add custom properties to Vue modules and instances
Issue When you inspect a Vue component that you have imported, you will get something like this: import ClickB from ‘ClickB.vue’; console.log(ClickB); I have seen that nuxt adds a custom property there (called _nuxt), just like there is _ssrRegister. I
Continue readingNuxt: Mounting dynamic components to the DOM that is not rendered yet
Issue Scenario: I am using Nuxt in universal mode. The app works with a headless CMS that provides a simple layout of components that should be rendered, along with component names and their props – something like this: [ {
Continue readingVueJS sever-side-rendering: computed property not seeing changes in store
Issue I’m trying to get server side rendering to work in VueJS. I’ve been following the official docs, and I’m attempting to get this example to work using axios. The endpoint is correct and the data does show up in
Continue readingNuxtJS: Static render just a component instead of 1000's of pages
Issue I have a Nuxt architecture question – Having never built a Nuxt site before. We have a website with potentially 1000’s of pages. We would like to leverage the power of Static Rendering. The CMS, which is hosted on
Continue readingIs it possible to create an in-memory tree from Create React App or Vue CLI?
Issue I’ve created a schematic that it easy to test because Angular CLI is based on schematics. To create a tree of files that I can inspect, all I have to do is setup an appTree as follows: const schematicRunner
Continue readingScoping Issue in Table when trying to access a specific row in a dilaog box (Vue.js, Element-ui)
Issue I have created a table using el-table (Element-ui) in Vue.js. I want to access a specific row in the table when clicked on a button in that row, but the catch here is that after clicking on the button,
Continue readingConfigure Nginx with Vue.js, Django Rest Framework as backend and /api/ on same server?
Issue I am in a process of deploying my newly developed e-commerce to a Ubuntu server that I have. I have already set up Nginx for Frontend and for Backend. The whole application is working fine. The only problem is
Continue readingHow to run NUXT (npm run dev) with HTTPS in localhost?
Issue EDIT: Updated the text in general to keep it shorter and more concise. I am trying to configure HTTPS when I run npm run dev so I can test MediaStream and alike locally (for which browsers require me to
Continue readingNuxt 3 can't can't make API calls to own backend
Issue Edit: As Hiran Chaudhuri mentioned this is not a Nuxt related issue. I use Nodemailer on my server to send out an email when the user fills out a contact form. However Nodemailer can’t send out the email, because
Continue readingHow can i filter records from proxy in VUE3?
Issue I am using ref() to store data from firebase. But when I am trying to filter and get the single record. It looks something like the below. But it is not supposed to. I should return a single object.
Continue readinghow can I add animate.css to nuxt js app?
Issue How do I install animate.css and have it working on my nuxtjs project? I have tried using the animate.css installation guide but still doesn’t work. Solution For npm users add animate.css on your project using this command npm install
Continue readingCopy button for html table. Different results with firefox and Chrome. How can I make it similar
Issue I want to copy the second row of an html table to paste it in an excel file. My code works perfectly with firefox, I can paste it in excel and one table cell matches one excel cell. However,
Continue readingVUE-JSON-EXCEL Change format date
Issue I just want to ask on how to change format date for the VUE-JSON-EXCEL library? After i click the generate excel button, it will display in the excel a date format like this "2022-06-10T18:18:34.000Z" instead of "10/6/2022 18:18:34" Already
Continue readingClicking on card not to do anything in vuejs
Issue I have an overlay that when you click on it makes it disappear! I have an absolute positioned card on top of this overlay that when clicked on should not make the overlay disappear but it does. How can
Continue readingHow to filter an array of object in Vuejs typescript
Issue in this project. I’m using Vuejs Typescript and the data type is like: ["order": { "id":1, "created_at":"2019-12-06T10:22:17Z", "status":"open", "updated_at":"2020-07-27T04:21:06Z", "recipient":null, "custom_fields":[ {"id":2,"value":’ABC’}, {"id":3,"value":’EFG}, {"id":4,"value":’CSA’} ] } ] This is how I get the data: private mapUnprinted (data: any) :
Continue readingHow to solve the Type 'string' is not assignable to type '"AOI" | "DIMM" | "FAN" | undefined' ts error
Issue I’m working on a vue3 project with TS and come across this error: I have 3 potential values coming from my backend and my kind prop is looking for one of those 3 values as a string. The prop
Continue readingIm using css Grid and Tailwind to create a simple Footer but there's line appearing in a place where it shoiuldn't and I would like to know ¿why?
Issue I’m using CSS grid to do something very simple, and Tailwind to style ( in which I’m really new so I’m probably making a silly mistake). This is the result I’m getting: Pretty good because It’s almost identical to
Continue readingError reading webpack-stats.json. Are you sure webpack has generated the file and the path is correct?
Issue I installed django with Vue and got this eror in runtime: Error reading webpack-stats.json. Are you sure webpack has generated the file and the path is correct? alongside manage.py: vue create frontend Default ([Vue 3] babel, eslint) cd frontend
Continue readingMaximum recursive updates exceeded in component
Issue I am trying to build this pretty simple fetching function: const fetchUnstakedNFTs = async (): Promise<void> => { if (wallet.value && wallet.value.connected && publicKey.value) { const tokenAccountsFromWallet = await connection.getParsedTokenAccountsByOwner(publicKey.value, { programId: new PublicKey( "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA" ), }); // Define
Continue readingHow to two-way bind v-model object in vue class style component with typescript
Issue I would like to create a custom component in vue cli where I can use the v-model for passing a value (or object) to my component. As I understand, when I use v-model for binding I can update the
Continue readingscrollTop using computed in vue.js
Issue Here is part of my code <template> <button v-show="visible" @click="backToTop">👆</button> </template> <script lang="ts"> export default { computed: { visible() { return document.documentElement.scrollTop != 0 } } } </script> The button doesn’t disappear when i scroll the page to the
Continue readingv-model throws ReferenceError only in Production
Issue I have the following View in Vue: <script setup> import Overwrite from "../components/Overwrite.vue"; </script> <template> <div> … <textarea v-model="text" cols="99" rows="20"></textarea> … </div> </template> <script> export default { data() { return { text: "" }; }, components: { Overwrite:
Continue readingHow to access data from computed property Vue.js
Issue I’m using Vue.js and when I try to access a variable from data inside a computed property, it returns undefined. Here’s the code: <script> export default { name: ‘app’, data: () => { return { lang: ‘sp’ } },
Continue readingVue assets image url auto changed
Issue I will get an image that I use in Vue project as url from another project. No problem on vue side when I call it like this : <v-img class="header__logo" lazy-src="@/assets/images/mail.jpg" src="@/assets/images/mail.jpg" alt="Logo" ></v-img> When I look at the
Continue readingVue3 + TS: All global compnents throw "JSX element type '___' does not have any construct or call signatures.ts(2604)"
Issue Every globally registered component has a red typescript squiggle in markup! The app still runs, like there are no errors! It happens on all components, custom made AND third party libs. It does NOT throw an error if I
Continue readingVue js 3 – Property 'projects' does not exist on type 'CreateComponentPublicInstance<{}, {}, {}, {}, {},
Issue Issue: Property ‘projects’ does not exist on type ‘CreateComponentPublicInstance<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, EmitsOptions, {}, {}, false, OptionTypesType<{}, … 4 more …, {}>, … 5 more …, {}>’ For some reason it’s screaming on computed, You can
Continue readingCouldn't find a way to achieve this Vue function
Issue i have a list of tasks (each task is inside a div), and i want to create a function so that if a task was clicked its border becomes red and if a different task was clicked the border
Continue readingHow to add conditional styling in Vue.js using a method?
Issue I want to add conditional styling in a child component based on the values of a prop passed from the parent component. This a working example of conditional styling: <li v-bind:class="[booleanValue ? ‘stylingClassOne’ : ‘stylingClassTwo’]" but this is only
Continue readingThree columns: one fixed, two reactive in Vuetify
Issue I need my right-most column in my layout to be exactly 600px (it is a special canvas thing in my application). I want the other two columns to split to remaining space like 70-30 or so. I have used
Continue readingvue cli 3 – use background image in style tag
Issue I want to use a svg image from my assets folder in one of my components as a background-image. Here is an example of my component: <template> <div class=”container”></div> </template> <script> export default { name: ‘component’ } </script> <style
Continue readingHow to bind style on-click in a loop
Issue I’ve an array of objects (items) that can be incremented with other items, I show them by looping into the array. see: and I would like to high-light an item when I click on it (e.g. : another border-top-color),
Continue reading<p v-text="foo"> vs {{ foo }} in vue?
Issue what is the difference between <p v-text="foo"> and {{ foo }} in vue? I know {{ foo }} is some DOM thingy, but they achieve the same function, so is <p v-text="foo"> also doing something to DOM? Solution They
Continue readingCSS put two divs next to each other
Issue I’m using vue.js and I’ve tried out using float: left; but it won’t work. I’m new to vue.js but it should work using normal css under the style right. My code: <template> <div class = "bar"> <h1 class =
Continue readingVuetify Expansion Panels with icon on the left side of Panel's header
Issue The Vuetify for Vue.js provides a way to add icons to the Expansion Panels (https://vuetifyjs.com/en/components/expansion-panels#custom-icon). However, I’d like to have them on the left side of the header like the screenshot below shows. The CodePen shows only a way
Continue readingCondtional overwrite Primevue Class p-accordion-header
Issue I am trying to find a solution for overwriting the primevue component class p-accordion-header to have different styles depending on the status of the rendered component that I can get with the variantNumber. This is what my code looks
Continue readingHow to set the value of a background Image in Vue using a URL generated by an API
Issue I am trying to set the value of the background image of my #app element in Vue to the response that is generated from Unsplash’s API. I am able to retrieve the image URL, but I am having some
Continue readingUsing Vue and AngularJS Together
Issue Can we use AngularJS with Vue? As Vue is more like a library than a framework so what are pros and cons of using them together? Solution Yes you can use Angular with Vue. However, there isn’t any reason
Continue readingBetter way to Type a Vue function?
Issue Good afternoon good people, I’ve been wrestling for the entire morning with Typing a ThemeSwitcher function in my Vue Application. I’d would be grateful for some insight on this issue. This is my code: // Typing of state and
Continue readingCan you merge an array of object into just one "big" array?
Issue I need to filter based on a search of words, When I look up one word it pulls up what I need, but I’ve been having some trouble when it comes to seaching for multiple words that meet the
Continue readingVueJS, this.$route.query.page, and Type 'null' is not assignable to type 'string'
Issue I have been working on this for about 2 hours now, no to avail. I have searched the Internet, tried creating a condition, etc. So I have a method in a VueJS component that looks like this: paginate() {
Continue readingTypescript error: The object can be undefined
Issue I am using vuejs. this.$slots.eventsContent?.[0]?.data = {}; I got error from IDE. TS2779: The left-hand side of an assignment expression may not be an optional property access. Do you know how to get rid of error? Solution Do not
Continue readingTS2536: Type 'string' cannot be used to index type 'Partial<NewData>'
Issue How fix this error? I want to wrap each object field from the getters argument in a ComputedRef wrapper import { computed, ComputedRef } from "vue"; function useComputedGroup<T extends Record<string, any>>(getters: T) { type NewData = { [K in
Continue readingTypeError: this.selectedNodes.value is not iterable
Issue So I am working with v-network-graphs to create graphs in the front end using Vue. I have defined my data as data(){ return{ test: test_data, nodes:{}, edges:{}, nextNodeIndex: Number, selectedNodes: ref<string[]>([]), selectedEdges: ref<string[]>([]) } } and my methods are
Continue readingVite + Vue Router – Dynamic Imports
Issue I’m using Vite together with Vue 3 for a personal project and have vue-router@4 for my routes. Because each of my modules uses the same set of routes, I created a helper function: import { RouteRecordRaw } from ‘vue-router’
Continue readingElement implicitly has an 'any' type because expression of type 'number' can't be used to index type '{}'. .ts(7053) VUEJS
Issue I know there are multiple questions of this type, but I tried almost everything and I am still getting this error. I am working in a vue project. I have defined my data as follows: data(){ return{ nodes: {},
Continue readingVue.js Mounted method is not triggering when I use computed method for filtering components
Issue I need to display Image that I get from external api. I have ProductCard.vue where I fetch the image in mounted hook. <template> <q-card class="my-card column text-center no-border-radius" flat bordered > <q-img :src="PRODUCT_IMG_SRC" sizes="(max-width: 400px) 400w, (min-width: 400px) and
Continue readingNo Overload Matches this call with Vue 3 ref<T>
Issue I have the following types defined and I am trying to use with ref and don’t want to define all the props default value initially, but I am TS error: No Overload Matches this call interface EmailReminder { bcc_emails:
Continue readingWhat does the "typecheck" npm script in Vue projects using Vite and TS do?
Issue I created a new Vue project using TypeScript and Vite via npm init vue@latest Inside the package.json file there is a typecheck script "typecheck": "vue-tsc –noEmit -p tsconfig.vitest.json –composite false", but I don’t know its purpose. Should I use
Continue readingObject is of type 'unknown'. ts(2571) with Vuejs and Typescript
Issue So I am trying to store JSON data in a variable in a Vue project. The code to upload and store the file is <input type="file" id="file" ref="fileSelect" class="custom-file-input" @change="showfiles" /> <script lang="ts"> . . methods: { showfiles() {
Continue readingMathematical operations for each tag in Vue 3?
Issue There are 3 separate tags in my modal. I want to do different mathematical operations in each tag. There are 3 inputs in each tag. 2 of them to enter numbers and the other to give the result. For
Continue readingInput NaN in Vue3?
Issue There is a formula that calculates the margin. My problem here is that when I do not enter a number, the NaN value is returned in the z value.How can I remove NaN and leave it blank? Template <form>
Continue readingNot receiving any error on unspecified interface object types when compiling
Issue Hi I’m testing out the Vue composition API with Types I’m trying to get an error when an interface does not meet the types specified for that interface. I’m successful in implementing the interface/types that are being expected and
Continue readingcan't receive file with multer (node.js-nuxt3)
Issue I use nuxt3/node.js with multer , i can’t store or receive file in my server and i can’t see req.file in root, its empty all time. server Code: const upload = multer({ dest: ‘./uploads/’ }) router.post(‘/sendNewQuestionCSV’, upload.single(‘csv’),adminControler.sendNewQuestionCSV.bind(adminControler)) and my
Continue reading