All Questions
Tagged with typescript routes
641
questions
1
vote
1
answer
40
views
Angular JS to Angular 18 migration
I'm trying to create a hybrid Angular JS Angular 18 application, and at first the application was running fine with this setup:
upgrade-module.ts
import { DoBootstrap, NgModule } from '@angular/core';
...
-1
votes
0
answers
26
views
How to use subdomains and routing after Clerk authMiddleware() deprication?
I need to code this:
TypeScript
export default authMiddleware({
publicRoutes: ['/site', '/api/uploadthing'],
async beforeAuth(auth, req) {},
async afterAuth(auth, req) {
//rewrite for ...
0
votes
1
answer
47
views
Creating [slug].tsx in Next.js Page router
I am trying to develop an app in Next.js using the page router framework. So for each component I have page.tsx under relevant folder name. For a particular component I need to have slug for routing, ...
0
votes
0
answers
17
views
Page.tsx file being Greyed Out in Next.js 14 App Router
I have a Next.js 14 project with over 10 routes, all of which are working fine. However, when I try to add any new route with a page.tsx file, it appears greyed out, and I am unable to commit it. This ...
1
vote
1
answer
37
views
How to send data from multiple screen to one single screen in React native
i have basically four screens and i am sending the data to other
screen. for example i am sending the data from Home to ListScreen with
some items from flatlist then i am also sending the other data ...
0
votes
1
answer
165
views
Angular 18 falsely throwing a routing error, despite the routes previously working fine
Background:
I'm integrating a login component that includes Google authentication. Upon successful authentication, user information is obtained, a token is generated, and then sent to the backend for ...
0
votes
1
answer
48
views
How to pass route children to root App in SolidJS in typescript?
I am trying to figure out to pass route elements to root element in typescript. I am currently using "@solidjs/router": "^0.13.6". Here is a demo of what I want to achieve. I want ...
1
vote
1
answer
71
views
Angular 17+ Standalone Modules
I've used Angular before, but an earlier version. Can someone educate me on why my routes for my navbar doesn't work with my Contact Page.
Here is the link... https://github.com/Logan-0/ngPersonal
My ...
1
vote
0
answers
26
views
Is there any way we can use lazy loading in the routing module of the file in which we are using <router-outlet>?
I am making a page in angular v12 and i am using router outlet in one of my component so that it can be reused. There is a property (output emitter) of router-outlet known as activate that get ...
0
votes
0
answers
21
views
I have a function in a nested component in Route /Home , I want to call the same function in route /Login without navigating to Home
What are the possible ways I can call a function from one component that is nested in one route to another route, without navigating
One approach I could think of is passing the fn as props
But what ...
2
votes
1
answer
40
views
Refresh the page in Angular or manually entering the desired path, redirects to the home page
I am using Angular 11. My project was working fine and suddenly I faced an issue:
When I use routerlink to address a specific path, it redirects correctly to that path, but when I try to access this ...
0
votes
0
answers
36
views
React + FastAPI: 404 Error When Navigating to New Route in Sidebar
I'm working on a project using the Full Stack FastAPI Template. The technology stack includes:
FastAPI for the backend with SQLModel for ORM, Pydantic for data
validation, and PostgreSQL as the ...
0
votes
1
answer
36
views
Next.js API POST method doesn't show data in endpoint
When I'm trying to make a POST request from my frontend side in Next.js project (with TypeScript), my API endpoint doesn't show desired JSON data, but only empty hyperlink string leading to nowhere.
...
2
votes
0
answers
204
views
How to Modify Middleware to Handle Two Route Groups in Next.js
I'm working on a Next.js project where I have two route groups, (auth) which contains my auth pages and (root) which contains the dashbaord and other pages and a homepage "/. I have a middleware ...
0
votes
1
answer
84
views
Getting "Method not allowed" in next js using API routes
Trying to use API routes in next js to call an api with POST method from server side, but getting "Method not allowed" error.
My page.tsx has a form; submitting the form must trigger ...