Skip to content
Advertisement

Tag: node.js

Multiple REST API calls in succession returns undefined

I’m trying to query some JIRA issues using a the jira-connector package. I’m running into issues with the data returned not being defined until after everything else is executed in my code. I’m not sure if this is some issue with concurrency, but I can’t for the life of me figure out where and how I’m messing up. If inside

I am trying to make a discord.js command that creates a role named “MUTED” and overwrites all the channel permission to set “Send message” to false [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I want to make it so that it creates the role and then overwrites the permissions in every channel that exists in the server. Answer

Jest: TypeError: replaceAll is not a function

String.prototype.replaceAll() is a useful method and while building and executing everything works fine. However, all Jest-tests fail with the following error: These are my dependencies: How can I fix this behavior? Answer The problem This happens because replaceAll is a new function not implemented in all browsers nor older Node.js versions (older than 15.0), as mentioned in the other answer.

Webpack Configuration Error – where is the bug?

I try to run “node index.js” and get the following error message: ValidationError: Invalid configuration object. Webpack has been initialized using a configuration object that does not match the API schema. configuration.module.rules[0] should be one of these: [“…” | object { compiler?, dependency?, descriptionData?, enforce?, exclude?, generator?, include?, issuer?, issuerLayer?, layer?, loader?, mimetype?, oneOf?, options?, parser?, realResource?, resolve?, resource?, resourceFragment?,

Advertisement