Quantcast
Channel: User HMR - Stack Overflow
Browsing all 39 articles
Browse latest View live

Comment by HMR on Logs not showing in Google Cloud Logging UI

When I try to see logs for cloud run (logs tab) in browser all I get is "Internal error encountered"

View Article



Comment by HMR on Why using a createSelector function in another file causes...

@LoyalPotato Looking at it more closely you may be right, both end up with a component having its own selector and both should in theory not re render as long as status does not change. Maybe it is...

View Article

Comment by HMR on Throw new Error with Object in TypeScript Jest

@spinningarrow Did someone tell typescript yet because I still have typescript complaining about it.

View Article

Comment by HMR on Add typescript to express application

@caTS It's unintuitive because server.js does not exist but it did the trick. Thank you for your help.

View Article

Comment by HMR on How to run Mocha tests written in TypeScript?

Cannot parse the mocharc.js unless renamed to mocharc.cjs and then cannot import anything in a project with typescript and javascript.

View Article


Comment by HMR on Nodejs stream, how to indicate to piped streams the...

@jfriend00 Thank you for the tip, I tried it in this sandbox but unless I add a listener to the data event of task the end event will not trigger. I have also updated the code in the question to the...

View Article

Comment by HMR on Modify trpc error before sending the response

@Unmitigated Yes, I did try opts.error = new TRPCError({message: 'changed error',code: 'INTERNAL_SERVER_ERROR',}) and opts.error.message="changed" but that did not change the error returned by the server.

View Article

Comment by HMR on Mocked selectors (reselect + jest) stopped working with...

@jake-ferguson I see you put a bounty on this 2 days ago so I assume you still have quite a predicament. Does the latest version still have this issue? As Lin Du suggested; is it possible for you to...

View Article


Comment by HMR on trpc error Input parser must be a ZodObject

Thank you for your reply, I found that trpc-opeapi uses zod-to-json-schema and zod-to-json-schema does not support union. Hence trpc-openapi does not support OpenAPI 3 spec.

View Article


Comment by HMR on Convert Typescript with JsDoc

Not sure if I did it right but I've taken the code from OP and ran ts-to-jsdoc and no jsdoc can be found in the output. Your repository describes the project as converting "TypeScript code annotated...

View Article

Comment by HMR on Jest ReferenceError: Request is not defined

@Craicerjack It's Request just like fetch it should be available in node as well as in (most) browsers.

View Article

Comment by HMR on Prevent Y scrollbar on parent and adding scrollbar to child

Thank you for your reply but I can't apply this: I have a parent that is used as a React component and has a scrollbar, I cannot change the parent The parent has many routes and in all of those routes...

View Article

Optionally import Component in Vue

I have several menu types and want to configure the type of menu to be used in .env.local for example: VUE_APP_MENU_TYPE=2In my javascript file I have the following:let menu = false;if...

View Article


Answer by HMR for Error Posting in Asp.Net Core with Vue.JS and Axios

I'm not 100% sure but think this.data is undefined according to the example here. You could try the following:methods:{ submitInfo(){ axios.post("Employees/Create", { Firstname: this.Firstname,...

View Article

Answer by HMR for Next.js getServerSideProps show loading

Here is an example using hooks.pages/_app.js import Router from "next/router"; export default function App({ Component, pageProps }) { const [loading, setLoading] = React.useState(false);...

View Article


Mock useSelector with different values

I'm trying something like this:const useSelector = jest.fn();jest.mock('react-redux', () => ({ useSelector,}));Then trying to do something like...

View Article

mocha Unknown file extension ".ts"

Trying to get this to work from the following exampleIn my mocharc.json:{"extension": ["ts"],"spec": "test/unit/**/*.spec.ts","require": "ts-node/register"}in package.json:"scripts": {"tstest": "env...

View Article


Answer by HMR for How to move an element into another element

I need to move content from one container to another including all the event listeners. jQuery doesn't have a way to do it, but the standard DOM function appendChild does.// Assuming only one .source...

View Article

Answer by HMR for Mock service worker on node post and grapql.query not working

I see the library I use created a header 'Content-Type': 'application/graphql', seems fine according to a quick read here but when I change it to 'Content-Type': 'application/json' (library allows me...

View Article

Mock service worker on node post and grapql.query not working

I have a node app that uses a library to make a graphql query after it authenticated. The following graphql query does not pick up the request: graphql.query(/^(.+?)$/, (req, res, ctx) => {...

View Article
Browsing all 39 articles
Browse latest View live




Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>