Category "javascript"

How disable chrome extension from popup menu?

i create my extension and i want create disable/enable button to popup menu in my chrome extension i has created popup.html file <button id="disable">D

Heroku S3 missing credentials in config, if using AWS_CONFIG_FILE, set AWS_SDK_LOAD_CONFIG=1',

I am facing a problem with uploading an image to heroku via S3. I don't have it locally but when I am in heroku I have this problem. I suspect that thhe credean

How to make autoplay of the Swiper slider start only after the slider enters viewport?

I'm using this code to initialize swiper slider. var mySwiper = new Swiper ('.swiper-container', { // Optional parameters pagination: '.swiper-paginati

How do I automatically check for '.only' calls accidentally left in Mocha specs?

I occasionally forget to remove .only calls from my Mocha specs before pushing spec changes. Doing so obviously affects test coverage, which requires addressing

Error: Objects are not valid as a React child (found: object with keys {}). If you meant to render a collection of children, use an array instead. JS

When I am trying to render a component on my user's dashboard I get this error message: Error: Objects are not valid as a React child (found: object with keys

Uncaught SyntaxError: Unexpected token < with React

I am very much new to React. The following is my first script. But I am getting the following error. Uncaught SyntaxError: Unexpected token < I have e

find method is not working in my react application

function ProductScreen(props) { console.log(props.match.params.id); const product = data.products.find((x) => x.id === props.match.params.id); console.l

How can i set a default selection in PrimeNG Treetable

I want to set the selection with the value i get from Local-Storage. Here is the code: HTML: <p-treeTable [value]="tableDataRow$ | async" [col

How to solve the data loss issue in Event Emitters in NodeJS? MicroServices

Below code is just for testing purpose , if it works then i want to implement the same in real project with microservices. I have 4 microservices in one server.

Uncaught (in promise) Error: Transaction fee payer required

I get this error when I try to execute this using phantom wallet and react app const transferTransaction = new Transaction() .add(SystemProgram.transfer({

Is it possible to convert a WebRTC SDP offer to answer?

I have two peers that want to connect to each other via WebRTC. Typically the first peer would create an offer and send it to the second via a signalling channe

How can I bind a variable to sequelize literal?

I have this subquery that is used to check the existence of a column related to the source model. const defaultingLoans = await Loan.findAll({ where: {

phpChart_Lite water mark displayin in graph

I am working with PHP graph and using new C_PhpChartX. PHP Chart Lite. Graph is displaying very well, but watermark behind graph not being removing.can anone he

Vue invalid host header

Don't know why 2 days ago my projects ( created via vue create ) stopped working - in Chrome i get Invalid Host Header and WDS Disconnected errors. In cmd e

Js How to got the sum of numbers from a string?

I'm new to coding and have been given this question; Create a function that takes a string with a jumble of letters and numbers. It should add together all the

Not able to get response , showing Operation `users.findOne()` buffering timed out after 10000ms`

I am facing an error while making the POST login request. I had deployed the frontend on Netlify here and the backend on Heroku here. This is my backend logs ht

I created a function in ReactJs but it's not working

Code: import './App.css'; function App() { const firstName = 'Toto'; const lastName = 'Wolff'; const age = 35; const job = 'Principal'; const getFu

Click Function using AJAX Jquery Javascript

I am making a movie review web site as a project for school, and I want to put a click function on the image movie cover which will load the details and reviews

Formik Initial Values out of Sync with Redux

This form is used to edit a user profile. It should load with up to date user data for the initial values. To handle this, I've added a redux fetchUser action i

How to create/join chat room using ws (Websocket) package in node js

I am using ws package in server side and I want the client to create/join rooms in server socket. And to remove them from a created room when they are no longer