Browser tab content: Dashboard Save Fork Share Image Watermarking Application…
- User
Browser tab content: Dashboard Save Fork Share Image Watermarking Application Non-commercial 1 Open in bolt.new | AI PROJECT Create a repository INFO FILES .bolt New File New Folder Rename Delete app New File New Folder Rename Delete globals.css Rename Delete layout.tsx Rename Delete page.tsx Rename Delete components New File New Folder Rename Delete ui New File New Folder Rename Delete ColorPicker.tsx Rename Delete FooterContent.tsx Rename Delete HeroContent.tsx Rename Delete ImagePreview.tsx Rename Delete ImageUploader.tsx Rename Delete PageFooter.tsx Rename Delete PageHeader.tsx Rename Delete WatermarkControls.tsx Rename Delete hooks New File New Folder Rename Delete lib New File New Folder Rename Delete types New File New Folder Rename Delete .eslintrc.json Rename Delete .gitignore Rename Delete components.json Rename Delete next-env.d.ts Rename Delete next.config.js Rename Delete package-lock.json Rename Delete package.json Rename Delete postcss.config.js Rename Delete tailwind.config.ts Rename Delete tsconfig.json Rename Delete Something broken? File a bug! page.tsx HeroContent.tsx FooterContent.tsx PageHeader.tsx ImageUploader.tsx Close all Close saved 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 } > <Upload className="mr-2 h-4 w-4" /> Upload New Image <Button size="lg" variant="outline" className="flex-1" onClick={onClear} > <Trash2 className="mr-2 h-4 w-4" /> Clear Image <input type="file" accept="image/*" onChange={handleImageUpload} className="hidden" /> </> )} ); } Terminal
- Local: http://localhost:3000 ✓ Starting... ✓ Ready in 1293ms ○ Compiling / ... [webpack.cache.PackFileCacheStrategy] Caching failed for pack: Error: Can't resolve 'tunnel-agent' in '/h ome/projects/sb1-bwk5ge/node_modules/sharp' while resolving 'tunnel-agent' in /home/projects/sb1-bwk5ge/node_modules/sharp to a directory ✓ Compiled / in 7s (782 modules) GET / 500 in 7111ms ⨯ Internal error: Error: Invariant: Expected workStore to exist when handling searchParams in a client Page. This is a bug in Next.js. at new InvariantError (./node_modules/next/dist/shared/lib/invariant-error.js:13:9) at ClientPageRoot (./node_modules/next/dist/client/components/client-page.js:23:19) at react-stack-bottom-frame (/home/projects/sb1-bwk5ge/node_modules/next/dist/compiled/next-server/app-pa ge.runtime.dev.js#cjs:25:229011) at renderWithHooks (/home/projects/sb1-bwk5ge/node_modules/next/dist/compiled/next-server/app-page.runtim e.dev.js#cjs:25:66720) sb1bwk5ge-05s3--3000--34c588ed.local-credentialless.webcontainer.io Made 5 formatting edits between lines 12 and 19
如何修复这个 Next.js 错误
- Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.