react-performance icon indicating copy to clipboard operation
react-performance copied to clipboard

Cant run the profiler from DevTools

Open rwakos opened this issue 1 year ago • 1 comments

Hi all, I read all the suggestions, and also tried:

npm run build --profile

But it goes to infinite loop:

`> build

cd ./playground && npm run build --profile

build cd ./playground && npm run build --profile

build cd ./playground && npm run build --profile

build cd ./playground && npm run build --profile

build cd ./playground && npm run build --profile`

So I can not start a profile with the DevTools, what can I do?

rwakos avatar Oct 02 '24 13:10 rwakos

I cannot reproduce this issue. Here's what I get when I run that after setting the playground to exercise 5:

~/code/epicweb-dev/react-performance (main) 🤖
$ npm run build

> build
> cd ./playground && npm run build


> [email protected] build
> tsc && vite build

vite v5.3.1 building for production...
✓ 59 modules transformed.
dist/index.html                     0.57 kB │ gzip:   0.33 kB
dist/assets/index-B27bX4Le.css      0.36 kB │ gzip:   0.20 kB
dist/assets/index-BlNrP4w1.js   1,271.09 kB │ gzip: 315.91 kB

(!) Some chunks are larger than 500 kB after minification. Consider:
- Using dynamic import() to code-split the application
- Use build.rollupOptions.output.manualChunks to improve chunking: https://rollupjs.org/configuration-options/#output-manualchunks

kentcdodds avatar Oct 03 '24 00:10 kentcdodds