Bolt.Diy install (nightmare) following update

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:

  1. Dependency Conflicts:
  • @remix-run/cloudflare-pages requires @cloudflare/workers-types@^3.0.0, but the project uses @cloudflare/workers-types@^4.x, causing dependency resolution errors (ERESOLVE).
  • remix-utils@7.7.0 expects @remix-run/react@^2.0.0, but the project uses @remix-run/react@1.19.3, leading to conflicting peer dependencies.
  1. Corrupted package.json:
  • The package.json contains invalid JSON (unexpected token) caused by trailing characters or missing syntax.
  • This resulted in a JSON.parse error (EJSONPARSE) when attempting to install dependencies.
  1. Husky Setup Issues:
  • Husky initialization failed with missing or improperly set up scripts (husky install was misconfigured).
  1. Other Errors Encountered:
  • Module resolution issues (MODULE_NOT_FOUND) due to incomplete installations or corrupted node_modules.
  • The development server (npm run dev) failed due to improper Remix configuration and dependency issues.

Steps We Have Tried

  1. Fixing Dependency Conflicts:
  • Attempted to resolve @cloudflare/workers-types conflicts by downgrading to a compatible version (^3.19.0) or overriding the dependency using the overrides field in package.json.
  • Upgraded @remix-run/react to ^2.15.2 to match remix-utils requirements.
  • Attempted to downgrade remix-utils to a version compatible with @remix-run/react@1.x.
  1. Fixing package.json:
  • Manually reviewed and corrected package.json for invalid syntax (missing commas, extra characters, or corrupted lines).
  • Validated the JSON structure using online tools.
  1. Reinstalling Dependencies:
  • Deleted node_modules and package-lock.json to start fresh.
  • Cleaned the npm cache using npm cache clean --force.
  • Reinstalled dependencies using npm install, --legacy-peer-deps, or --force flags.
  1. Addressing Husky Issues:
  • Updated the prepare script in package.json to husky install.
  • Reinitialized Husky using npx husky install.
  1. Addressing Remix Warnings:
  • Updated remix.config.js to include future flags to resolve deprecation warnings for APIs like CatchBoundary, formMethod, and meta.
  1. 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

Hi,
if you follow the install instructions 1:1 it should work without problems. As far as I see you used NPM instead of PNPM to install, as mentioned in the docs, which is not working well often, except for some mac users having problems with pnpm.

Did you checkout the installation videos? Videos / Tutorial / Helpful Content

Thank you; I initially tried PNPM as I thought that was preferred, but made a muddle, and then throught i’d try npm - I removed everything and started afresh following these instructions, and we’re now up and running…

Very much appreciated :slight_smile:

1 Like