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-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.
- 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.
- Husky Setup Issues:
- Husky initialization failed with missing or improperly set up scripts (
husky install
was 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-types
conflicts by downgrading to a compatible version (^3.19.0
) or overriding the dependency using theoverrides
field inpackage.json
. - Upgraded
@remix-run/react
to^2.15.2
to matchremix-utils
requirements. - Attempted to downgrade
remix-utils
to a version compatible with@remix-run/react@1.x
.
- 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.
- Reinstalling Dependencies:
- Deleted
node_modules
andpackage-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.
- Addressing Husky Issues:
- Updated the
prepare
script inpackage.json
tohusky install
. - Reinitialized Husky using
npx husky install
.
- Addressing Remix Warnings:
- Updated
remix.config.js
to includefuture
flags 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