Comments (3)
Thanks for the issue! This issue has been labeled as needs reproduction
. This label is added to issues that need a code reproduction.
Please reproduce this issue in an Ionic starter application and provide a way for us to access it (GitHub repo, StackBlitz, etc). Without a reliable code reproduction, it is unlikely we will be able to resolve the issue, leading to it being closed.
If you have already provided a code snippet and are seeing this message, it is likely that the code snippet was not enough for our team to reproduce the issue.
For a guide on how to create a good reproduction, see our Contributing Guide.
from ionic-framework.
I was able to reproduce the error from a new vanilla project.
*Project is attached as .zip for convenience / Find below step by step instructions to reproduce
- Install homebrew in MacOS (https://brew.sh/)
- brew install node@20 (LTS)
- Follow this guide to create a primitive sample project: https://ionicframework.com/docs/react/quickstart
- (Open Project in Visual Code)
- Copy/Paste belows package.json
{
"name": "ionprojectsample",
"version": "1.8.0",
"description": "An Ionic project",
"private": true,
"_checkLatestVersionHere": "https://www.npmjs.com/package/@types/node",
"dependencies": {
"@amcharts/amcharts4": "^4.10.22",
"@capacitor/android": "^5.7.0",
"@capacitor/app": "^5.0.7",
"@capacitor/cli": "^5.7.0",
"@capacitor/core": "^5.7.0",
"@capacitor/haptics": "^5.0.7",
"@capacitor/ios": "^5.7.0",
"@capacitor/keyboard": "^5.0.8",
"@capacitor/status-bar": "^5.0.7",
"@ionic/core": "^7.7.3",
"@ionic/react": "^7.7.3",
"@ionic/react-router": "^7.7.3",
"@types/jest": "29.5.12",
"@types/node": "20.11.20",
"@types/react": "^18.2.57",
"@types/react-dom": "^18.2.19",
"@types/react-router": "^5.1.16",
"@types/react-router-dom": "^4.3.5",
"canvas": "^2.11.2",
"ionicons": "^7.2.2",
"jsdom": "^24.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intl": "^6.2.2",
"react-router": "^5.2.1",
"react-router-dom": "^5.2.1",
"typescript": "4.9.5"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": [
"Chrome >=79",
"ChromeAndroid >=79",
"Firefox >=70",
"Edge >=79",
"Safari >=14",
"iOS >=14"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^7.0.2",
"@typescript-eslint/parser": "^7.0.2",
"eslint": "^8.56.0",
"react-scripts": "^5.0.1"
}
}
- Run
npm install
(inside myApp) - Open App.tsx (inside Visual Studio Code)
-> IonReactRouter
is red-underlined / throws error
from ionic-framework.
Hi, it looks like you haven't updated the @types/react-router-dom package. If you update this, the error should go away.
E.g.
"@ionic/react": "^7.7.3",
"@ionic/react-router": "^7.7.3",
"@types/react-router": "^5.1.20",
"@types/react-router-dom": "^5.3.3",
"react-router": "^5.3.4",
"react-router-dom": "^5.3.4"
from ionic-framework.
Related Issues (20)
- bug: ion select shadow dom lable can not be used in angular HOT 1
- bug: ion-modal .modal-shadow z-index override not applying HOT 2
- bug: Click event on ion-item fires twice when ion-input is inside HOT 1
- bug: virtual prop mode does not account if assigned dynamically for all components HOT 1
- bug: in IonRouterOutlet types does not follow the proper type documentation HOT 11
- bug: Lifecycle hook not firing when going to non tabs page and coming back. HOT 4
- bug: IonTabButton doesn't have default HTML event attributes typed HOT 1
- bug: ion-backdrop visible=false not working HOT 1
- bug: IonRouterOutlet missing the properties onPointerEnterCapture, onPointerLeaveCapture HOT 4
- bug: Angular 17 and Ionic 7 - SSR issue HOT 3
- bug: IonRouterOutlet | Type '{ children: Element[]; }' is missing the following properties from type 'Pick<IonRouterOutlet & { basePath?: string | undefined; ref?: Ref<any> | undefined; ionPage?: boolean | undefined; } & IonicReactProps & Omit<...>, keyof IonicReactProps | ... 253 more ... | "ionPage">': onPointerEnterCapture, HOT 2
- bug: Filled Input changing the centered vertically of label when switch font-family css HOT 5
- bug:test
- bug: autocapitalize is required in IonSearchbar types HOT 3
- bug: <Home /> in Home.tsx (vanilla "Quickstart" example) | Type '{}' is missing the following properties from type 'RouteComponentProps<{}, StaticContext, unknown>': history, location, match HOT 1
- Where is the dist folder containing code on your CDN? HOT 1
- bug: ion-datetime Month Navigation Fails in RTL Mode" HOT 1
- feat: select, add errorText and helperText props HOT 1
- bug: Ionic 7+ Angular LoadingController with Http Interceptor Loader Present and Dismiss issue HOT 2
- bug: the labelPlacement attribute set to 'floating' does not function properly when buttons or icons are used within a ion text area. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ionic-framework.