Comments (10)
After several tests, I finally understood what is happening.
If in my package.json
I use the new CRA 3 default below:
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
deleting before npm start the node_modules/.cache
folder it doesn't work!
Re-deleting .cache folder with your below browserlist in package.json it works!
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
did you try "@welldone-software/why-did-you-render" before?
yes of course
from why-did-you-render.
From what I can tell, this is not related to why-did-you-render at all but a regular javascript TypeError.
from why-did-you-render.
Everything else works good.
from why-did-you-render.
did you try "@welldone-software/why-did-you-render" before?
from why-did-you-render.
what is Navbar?
from why-did-you-render.
create-react-app 3 and wdyr works together:
https://codesandbox.io/s/8ylmw38rl
from why-did-you-render.
@vzaidman, why did you close? There is still a problem.
from why-did-you-render.
oh i thought you said "it works"
from why-did-you-render.
whats your current browser list? how do you import wdyr? what component are you using it on?
from why-did-you-render.
@frederikhors as far as i know it should work. we have tests that verify these scenarios. there are, however, some serious issues with browserlist cache that are not related to the project.
please do the following:
- change broserlist and babel config according to your need
- delete
node_modules/.cache
- re-run
if the issue remains, you are free to reopen this issue and specify:
- your current .browserlistrc
- your babel config
- how do you import wdyr
- how do you use it and on what component
from why-did-you-render.
Related Issues (20)
- dom npm
- wdyr not work in next13 (repo provided) HOT 2
- wdyr not work in next13 (repo provided)
- WDYR includes full lodash library with window._ override HOT 6
- Cannot get WDYR output from nextjs dynamically loaded component (e.g. for no-ssr use case) HOT 2
- Project still being actively maintained? HOT 2
- Multiple React roots
- why-did-you-render + React Query
- No logs or anything about WDYR HOT 9
- Missing `ownerDataMap` in `notifier`
- Partially Working with React 18 + NextJS 13
- "Support for defaultProps will be removed" error after setting include: [/./] option HOT 2
- Tracking custom hooks issue HOT 2
- WhyDidYouRender is not working in Storybook.js
- Property 'React' doesn't exist HOT 1
- react-refresh-webpack-plugin not updating component when wrapped with React.memo.
- `trackAllPureComponents: true` is not working
- Next.js example is missing
- Links from the Credits section are broken HOT 1
- wyd support to react 19 HOT 3
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 why-did-you-render.