« first day (1704 days earlier)      last day (1314 days later) » 

5:42 AM
good morning
 
 
1 hour later…
6:44 AM
Good morning @jafarbtech
@jafarbtech can you please help me by getting this error
vue.runtime.esm.js?2b0e:619 [Vue warn]: Property or method "capacity" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property. See: https://vuejs.org/v2/guide/reactivity.html#Declaring-Reactive-Properties.

found in

---> <App> at src/App.vue
<Root>
If you dont mind only
 
7:06 AM
@G.Lakshmi can I tell you few things?
@G.Lakshmi there is no single word called capacity here in your link
 
@jafarbtech capacity is in my code
<template>
<div id="app">Capacity: {{ capacity }}</div>
</template>

import VueCompositionApi from './@vue/composition-api';
Vue.use(VueCompositionApi);
<script type="module">
import { ref } from "@vue/composition-api";
export default{
setup(){
const capacity = ref(3);
return { capacity };
}
};
</script>
and what I kept before is the error which I got @jafarbtech
@jafarbtech even the link you specified is also a part of this error
 
7:47 AM
@G.Lakshmi when you are first learning a program with tutorial, first of all try to duplicate the same program from the tutorial and confirm wether it is running properly or not
 
@jafarbtech yes it is same to same code which I tried
 
if you got error at that time itself then some problem is there in your folder structure or environment or versions of frameworks that you are using
if the same program runs properly then try changing few lines one by one. so that you will understand which line is for which purpose and you are making sure it is running
this is how I have learnt as a programmer
 
yes but from two days i am working on duplicating code it is getting error @jafarbtech
 
2nd thing you need to know. here every one is woking on their respective frameworks even if they are using the same technology. Example I know Javascript but I dont know single thing about vueJS. In between few of them might be known of vueJS but still they might be in different versions that's completely different in syntax from what you are working on. Example I know angularJS, but I dont know much of angular 8 or 9 as it uses completely different syntax
 
Ok but it is basical thing
thats why I had asked
 
7:58 AM
3rd thing. Keep in mind that people messing here dont have any idea on your works, which framework you are using, what are you trying to achieve and what is your code of conduct. So be specific about what you are asking here.
 
Ok @jafarbtech
 
Like I am trying to create web app using vueJS 1.2 I am beginner. I am trying to use the
`Vue Composition API` like the tutorial in the following link. https://www.telerik.com/blogs/vue-composition-api-what-is-it-how-to-use-it
This is my online fiddle link that it is throwing error like Some Error Null Pointer or Something.
 
Ok thankyou @jafarbtech
 
specify the link of fiddle or demo link you have done. so even if I dont know vueJS if you have made a simple Javascript bug I could tell you like this error you have done and if I have time I could fork your js fiddle demo and correct it and provide you the corrected link
 
yeah sure @jafarbtech
 
8:06 AM
Dont think like I am talking like rules or something. This is how you should have asked to get the help
 
No problem thank you for suggestions
 
He is trying to help you here if you could replicate your error in any online url like in Jsfiddle, CodePen, or JSBin then some one in Javascript Room would have answered you as most of them were using a working on a lot of frameworks so that some one could solve the issue online itself. other than our JS, HTML, CSS problems can't be solved online.
If you see Android or iOS programs they cant get help like us online. We have got a lot of opportunity to get help and solve online
@G.Lakshmi try your best to describe your problem clear with their perspective as they dont know anything about your code
 
yes @jafarbtech when I pasted the same code in fiddle I am not getting anything
See this jsfiddle.net/3gkywLdh/2 I pasted the code what I did but not getting anything
 
8:32 AM
@G.Lakshmi replicate the error in the link. now it is not showing any error.
 
@jafarbtech the error is at my side as I downloaded vue and wrote the code
 
@G.Lakshmi then how can we know what you are doing on your side. You are not going to get answer without replicating the error online. creating a fiddle is not just pasting in the website. you should create a onling playground and show the error of what you are getting
 
@jafarbtech actually I am trying to replicate but I dont know using cdns to get it replicate
even used cdns also jsfiddle.net/bvmsf4oe/3 see once but not replicating the same error
 
8:51 AM
what are all the version numbers that you are using
 
vue version is `-- vue@2.6.11
vue-cli is @vue/cli 4.2.2
 
@G.Lakshmi then there is no possibility of solving it.
 
why are the versions wrong ?
 
@G.Lakshmi this is example fiddle for a simple Vue.js instance
try to replicate your problem by fork the link. otherwise we have no clue on what you are doing
 
9:08 AM
Ok @jafarbtech
 
9:55 AM
codesandbox.io/s/cranky-sky-bg65m @jafarbtech I replicated the error in this link please see once
 
10:41 AM
@jafarbtech did you checked once is the error coming in the link which I shared?
@jafarbtech thank you for your help and suggestions I got it :)
 
@G.Lakshmi so what was the error?
 
actually I should specify name: the divname in the template in the export default()
then it came
 
10:57 AM
ohh ok ok
like export default app as app is the div id?
 
yes export default{
name: "divname specified in template"
thats the solution
 
ohh k k :) good
 
Thankyou for your suggestions :)
 
11:39 AM
@G.Lakshmi you are welcome :)
 

« first day (1704 days earlier)      last day (1314 days later) »