Questions tagged [app-router]

116 questions
0
votes
1 answer

Routing to landing page

I am using Polymer and trying to get the app-router setup. I cannot get the app to direct the user to the landing page. I have tested all of the other pieces individually, so I know that my pages will render.
David Price
  • 170
  • 1
  • 16
0
votes
1 answer

app-router and web component callback functions

I'm trying to import the web component with id "test-comp" for the path "/path1": The code of the web component is the following:
luthien
  • 1,285
  • 3
  • 15
  • 26
0
votes
1 answer

app-router "go" is not rendering : Polymer

I am trying to replace a component on the screen using app-router element but it doesn't render anything. Below are the details. There are two major elements in "my-element.html". One is the side bar and other is the main panel. I want to replace…
shiv chawla
  • 591
  • 1
  • 8
  • 20
0
votes
1 answer

Can polymer app-route be used to create a catch all route?

Is there a way to use app-route to create a catch all route? Adding wild card doesn't seem to work the way I was expecting.
pbcomm
  • 53
  • 5
-1
votes
2 answers

I cant seem to get regular css to work in my next js 13 project. im a noob pls

I cant seem to get the default css to work in my next 13 project. I have a page.modules.css file and i'm using classname = styles.style page.tsx import styles from'./page.module.css' export default function Home() { return (
-1
votes
1 answer

Styling specific routes with different background colors in Next.js and Tailwind CSS

I'm currently working on building a portfolio website using Next.js 13 and Tailwind CSS. In my project, I'm using app routing, and I have a Sidebar component that remains persistent on every route. Most of the pages share the same background color,…
anuka
  • 25
  • 5
-1
votes
1 answer

How to use getServerSideProps in new app router (app/blah/page.tsx)

I'm new to Next.js and trying to use the new app router (i.e. place my pages under app/.../page.tsx) The following works in page router (pages/blah.tsx) but not in app/blah/page.tsx . app router doesn't call getServerSideProps at all and passes…
-1
votes
1 answer

How to read and parse a JSON file using fs.readFile in Next.js app router directory?

i want to read a json file data using fs.readFile in next.js 13.4 APIs in app router(directory) and parse it by JSON and display it. But it is showing the JSON content in console.log but not while i am returning it by NextResponse. Also there are…
neel_G_ji
  • 17
  • 2
-1
votes
1 answer

Is there any way to change icon text after clicking on it?

I want to use a single icon for 2 pages. If I'm on home screen and if I press icon A then it will go to screen A and icon A changes to Icon B. If I press Icon B it goes to Screen B and Icon changes to A. using react native app router (stack).
Nazmul Hasan
  • 860
  • 6
  • 17
-2
votes
2 answers

How do you access the request/response from an app router page?

In the pages router, you could create a getStaticProps function, which would then feed props into your component function. getStaticProps in turn got an argument of the request and response objects, so you could pass any information you wanted from…
machineghost
  • 33,529
  • 30
  • 159
  • 234
-3
votes
1 answer

Error: Minified React error #482; visit https://reactjs.org/docs/error-decoder.html?invariant=482

what's up? So, I'm facing a difficult problem to debug and solve by myself using the web literature, for some factors that I will mention. As you may have noticed from the title, the browser console shows a 482 code minification error and a link…
1 2 3 4 5 6 7
8