Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
commit: |
| import './styles.css'; | ||
|
|
||
|
|
||
| Store.isInIframe.value = false; |
There was a problem hiding this comment.
react-scan doesn't work inside iframes, this enables it
There was a problem hiding this comment.
I just copied this from my forgetti example: https://github.com/lxsmnsyc/forgetti/tree/main/examples/react/src
| const examples: Example[] = [ | ||
| { title: 'Sierpinski Triangle', url: '/?example=sierpinski' }, | ||
| { title: 'Todo List', url: '/?example=todo-list' }, | ||
| ]; |
There was a problem hiding this comment.
A little bit manual. When you add a new app in the examples/, this needs to be reflected.
?example query needs to match the folder name
| "scripts": { | ||
| "build": "WORKSPACE_BUILD=true node scripts/workspace.mjs build", | ||
| "postbuild": "node scripts/version-warning.mjs", | ||
| "postinstall": "pnpm build", |
There was a problem hiding this comment.
A bit annoying.
fyi: pnpm no longer runs this by default, https://github.com/pnpm/pnpm/releases/tag/v10.0.0
There was a problem hiding this comment.
there is a small issue with fresh clone ...
🚀 pnpm dev
> root@ dev /Users/pivanov/react-scan
> node scripts/workspace.mjs dev
> react-scan@0.1.3 dev /Users/pivanov/react-scan/packages/scan
> pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup
> react-scan@0.1.3 copy-astro /Users/pivanov/react-scan/packages/scan
> cp -R src/core/monitor/params/astro dist/core/monitor/params
cp: dist/core/monitor/params: No such file or directory
ELIFECYCLE Command failed with exit code 1.
/Users/pivanov/react-scan/packages/scan:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL react-scan@0.1.3 dev: `pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup`
Exit status 1
Scope: 2 of 5 workspace projects
packages/extension dev$ pnpm dev:chrome
packages/website dev$ next dev --turbopack
packages/extension dev: > @react-scan/extension@1.0.4 dev:chrome /Users/pivanov/react-scan/packages/extension
packages/extension dev: > cross-env BROWSER=chrome vite
packages/website dev: ▲ Next.js 15.0.3 (Turbopack)
packages/website dev: - Local: http://localhost:3000
packages/website dev: ✓ Starting...
packages/website dev: ✓ Ready in 601ms
....
maybe we should touch a bit ./packages/scan/package.json ... the astro related things?
There was a problem hiding this comment.
is this part of the build?
There was a problem hiding this comment.
yeah ... I need to check the deps ... because some packages rely on the ./packages/scan/dist we should make sure the scan it's build before the others ... and things like that ... but I will check it when we have more stable file structure
There was a problem hiding this comment.
weird, I cannot repro this in my device, perhaps the existence of the dist folder itself. hmmm.
There was a problem hiding this comment.
oh ... yeah ... you should remove all dist folders (fresh clone)
| "scripts": { | ||
| "build": "WORKSPACE_BUILD=true node scripts/workspace.mjs build", | ||
| "postbuild": "node scripts/version-warning.mjs", | ||
| "postinstall": "pnpm build", |
There was a problem hiding this comment.
there is a small issue with fresh clone ...
🚀 pnpm dev
> root@ dev /Users/pivanov/react-scan
> node scripts/workspace.mjs dev
> react-scan@0.1.3 dev /Users/pivanov/react-scan/packages/scan
> pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup
> react-scan@0.1.3 copy-astro /Users/pivanov/react-scan/packages/scan
> cp -R src/core/monitor/params/astro dist/core/monitor/params
cp: dist/core/monitor/params: No such file or directory
ELIFECYCLE Command failed with exit code 1.
/Users/pivanov/react-scan/packages/scan:
ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL react-scan@0.1.3 dev: `pnpm copy-astro && npm-run-all --parallel dev:css dev:tsup`
Exit status 1
Scope: 2 of 5 workspace projects
packages/extension dev$ pnpm dev:chrome
packages/website dev$ next dev --turbopack
packages/extension dev: > @react-scan/extension@1.0.4 dev:chrome /Users/pivanov/react-scan/packages/extension
packages/extension dev: > cross-env BROWSER=chrome vite
packages/website dev: ▲ Next.js 15.0.3 (Turbopack)
packages/website dev: - Local: http://localhost:3000
packages/website dev: ✓ Starting...
packages/website dev: ✓ Ready in 601ms
....
maybe we should touch a bit ./packages/scan/package.json ... the astro related things?
|
|
||
| .todo-item.pending { | ||
| background-color: rgba(254, 243, 199, 255); | ||
| } No newline at end of file |
kitchen-sink/src/index.css
Outdated
| @@ -0,0 +1,3 @@ | |||
| body { | |||
| margin: 0; | |||
| } No newline at end of file | |||
kitchen-sink/src/main.css
Outdated
|
|
||
| body { | ||
| overflow: hidden; | ||
| } No newline at end of file |
pnpm-workspace.yaml
Outdated
| packages: | ||
| - 'packages/*' | ||
| - 'examples/*' | ||
| - 'kitchen-sink' No newline at end of file |
|
long overdue |
kitchen-sink/src/examplesexamplesandkitchen-sink