Category "javascript"

TinyMCE shows error in the editor

I have used tinyMCE for my project. but now I am getting a below error This domain is not registered with TinyMCE Cloud. Start a free trial to discover our pre

Navigation error: Null is not an object (evaluating '_navigation$getParam.id')

I don't know why my navigation isn't working properly, it throws me the following error every time I want to navigate back to my EventAssistants screen from my

Parsing JSON in React Native

I am currently using Google Firebase Firestore as a REST API. I feel like I am missing something quite basic as I am having a difficult time displaying data. I

Vue Pinia function is undefined in onMounted when unit test is ran

I have a component and a Pinia store which contains a state and some actions. The code works perfectly fine in browser and in E2E (cypress) tests, but fail on u

HTTPS Request returns getaddrinfo ENOTFOUND

I am attempting to make an HTTPS POST request to the https://petstore.swagger.io/v2/pets endpoint. Documentation can be found here: https://petstore.swagger.io/

Mimicking negative lookbehind to match a pattern not immediately preceded with a specific character in JavaScript regex

I have this regex in Javascript: 0x[A-F0-9]{2}\g I would like to modify that in order to get a match when the previous character IS NOT a \. Something like t

Vue 3 - emit is not a function

I'm having a strange problem using emit in Vue 3 Composition API + Vite. I want to make a simple emit from a child component to a parent. The code of the child:

Reverse each word with uppercase without changing word

How do I reverse each uppercase and lowercase ("I am A Great human") to ("I ma A Taerg namuh")? This is the code I Have: function wordsReverse(str) { let wo

Render blocking Javascript at end of body tag - Firefox renders some visual content, Chrome does not

I am just experimenting with a few performance related optimizations. As per my understanding, any inline script is render blocking and the browser executes it

default value for multiple select in form antd 4

I'm unable to set default value for multi select inside form. Use Case: I have created a react component that renders a select with some default props that I n

openVidu - connectionDestroyed / sessionDisconnected event doesn't trigger when websocket connection lost because of network problem

Publisher doesn't notify when connection is destroyed or diconnected. In Openvidu docs, they suggest connectionDestroyed & sessionDisconnected event but it

NuxtJs dynamic open graph tags are not working

i am trying to set up a dynamic open graph meta tags using the following code async asyncData({ app, route }) { let postDetails = await app.$axios.g

How do you add/remove hidden in <p hidden> with JavaScript

How do you add and remove 'hidden' from <p hidden>My Text</p>? I tried removing the attribute and setting it to false but neither of them worked.

Next.js, Strapi - Fetch response is empty

I have nextjs frontend that fetch data from strapi backend. Problem is that data is empty even if i can see on strapi dev logs that request has been made. This

Change HTML Page Language

I want to make a page in English that has a button which can change the language to German. I have read thousands of articles about this topic but I haven't got

How to display custom building on mapbox-gl map

I wan't to display my own buildings on map(as in example). They should be static - my screen example At screenshot you can see example with marker building(it m

Geospatial 2dsphere index not creating in MongoDB Atlas and manually

I am trying to create a 2sphere index in my mongodb collection. The index needs to be on location field which is at GeoJSON format: location: { coordinat

Nested objects in response not logging to console

My server gets a response from another server with a document from a mongodb database with a body similar to { messageDetails: { body: "hello" }

'expo start' or 'npm start' command stuck at ''Starting metro bundler"

I am using react native expo for building mobile app. I followed below steps:- expo init myapp cd myapp expo start After running above 3 commands everything was

How to get rid of Delete `··` (prettier/prettier) errors in a Vue JS project

I am trying to get rid of the error in relation to @vue/prettier. I have tried a few things, but it seems to throw up even more errors. My .eslintrc.js is as fo