Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caching and Build Fails #408

Open
bozobit opened this issue Jan 17, 2025 · 1 comment
Open

Caching and Build Fails #408

bozobit opened this issue Jan 17, 2025 · 1 comment
Labels
bug Something isn't working

Comments

@bozobit
Copy link

bozobit commented Jan 17, 2025

Describe the bug
Dependabot generates pull requests, and then also kicks off a build in vercel. These builds frequently fail with the message:

app:build: Type error: Parameter 'page' implicitly has an 'any' type.

or something quite similar. However, if I set the cache setting to false on the turbo.json file like this:

  "tasks": {
    "build": {
      "dependsOn": ["^build", "test"],
      "outputs": [".next/**", "!.next/cache/**", ".basehub/**"],
      "cache": false
    },

... then these build fails stop happening. (I have noticed in general, that build fails in other cases that were fixed by updating this caching setting)

However, I don't know whether this is the right way to handle this issue as the caching setting on build is not false by default.

next-forge version
I am using version 3.2.16, but I have had this problem since 3.1.8

To Reproduce
Steps to reproduce the behavior:

  1. Build a new next-forge project with the default settings.
  2. Deploy to vercel
  3. Let dependabot invoke new builds (It will line up about 10 of them)
  4. See if it errors out for you

Expected behavior
Buiilds will not fail.

Screenshots

Desktop (please complete the following information):

  • OS: Linux Mint
  • Browser: Chrome
@bozobit bozobit added the bug Something isn't working label Jan 17, 2025
@dmytrotree
Copy link

I have same issue that causes builds to fail with same error. Re-deploy with "no-cache" option fixes that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants