You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am facing an issue after installing the package to my NEXT app . I am new to NEXT and exploring this package to check on performance of the app and encountered with below error .
Added the package
imported the package const { registerObserver } = require('react-perf-devtool');
But can see a warning in vscode itself saying :
Could not find a declaration file for module 'react-perf-devtool'. 'xxx/node_modules/react-perf-devtool/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/react-perf-devtool` if it exists or add a new declaration (.d.ts) file containing `declare module 'react-perf-devtool';`
Also after running my dev , i got below error in my log :
window is not defined
at Object.<anonymous> (xxx/node_modules/react-perf-devtool/lib/devtool-hook.js:1:224)
I am using
Next app version : 10.1.3
React : 17.0.1
Let me know if you need more info on this . Thanks in advance !
The text was updated successfully, but these errors were encountered:
Hi @nitin42 ,
I am facing an issue after installing the package to my NEXT app . I am new to NEXT and exploring this package to check on performance of the app and encountered with below error .
const { registerObserver } = require('react-perf-devtool');
But can see a warning in vscode itself saying :
Also after running my dev , i got below error in my log :
I am using
Let me know if you need more info on this . Thanks in advance !
The text was updated successfully, but these errors were encountered: