I was hitting the excessive token issue/over 100K on submit, and folks here kindly advised that this wasn’t a problem with the new ver - which is awesome.
So, I’ve now been trying to get it up a running for about 3 hours, and rather than snap my keyboard and throw a tanty (not a coder) I thought I’d beg further help from the adults - this is where i crash every time:
The primary issue revolves around dependency conflicts and corrupted package.json formatting within the bolt.diy project. The following errors have been encountered during the setup process:
- Dependency Conflicts:
@remix-run/cloudflare-pagesrequires@cloudflare/workers-types@^3.0.0, but the project uses@cloudflare/workers-types@^4.x, causing dependency resolution errors (ERESOLVE).remix-utils@7.7.0expects@remix-run/react@^2.0.0, but the project uses@remix-run/react@1.19.3, leading to conflicting peer dependencies.
- Corrupted
package.json:
- The
package.jsoncontains invalid JSON (unexpected token) caused by trailing characters or missing syntax. - This resulted in a
JSON.parseerror (EJSONPARSE) when attempting to install dependencies.
- Husky Setup Issues:
- Husky initialization failed with missing or improperly set up scripts (
husky installwas misconfigured).
- Other Errors Encountered:
- Module resolution issues (
MODULE_NOT_FOUND) due to incomplete installations or corruptednode_modules. - The development server (
npm run dev) failed due to improper Remix configuration and dependency issues.
Steps We Have Tried
- Fixing Dependency Conflicts:
- Attempted to resolve
@cloudflare/workers-typesconflicts by downgrading to a compatible version (^3.19.0) or overriding the dependency using theoverridesfield inpackage.json. - Upgraded
@remix-run/reactto^2.15.2to matchremix-utilsrequirements. - Attempted to downgrade
remix-utilsto a version compatible with@remix-run/react@1.x.
- Fixing
package.json:
- Manually reviewed and corrected
package.jsonfor invalid syntax (missing commas, extra characters, or corrupted lines). - Validated the JSON structure using online tools.
- Reinstalling Dependencies:
- Deleted
node_modulesandpackage-lock.jsonto start fresh. - Cleaned the npm cache using
npm cache clean --force. - Reinstalled dependencies using
npm install,--legacy-peer-deps, or--forceflags.
- Addressing Husky Issues:
- Updated the
preparescript inpackage.jsontohusky install. - Reinitialized Husky using
npx husky install.
- Addressing Remix Warnings:
- Updated
remix.config.jsto includefutureflags to resolve deprecation warnings for APIs likeCatchBoundary,formMethod, andmeta.
- Rebuilding the Project:
- Attempted a full rebuild of the project by cloning a fresh repository, correcting dependencies, and reinstalling everything.
Anyone out there know how to get past this install hurdle ?
Sorry to be a bothersome noob, but once installed Bolt.diy (last version) and i get on well - but the install makes me whimper under my desk