Skip to content

504 Timeout on some dependencies #396

Answered by jacksteamdev
filipw01 asked this question in Q&A
Discussion options

You must be logged in to vote

@filipw01 I have seen this before. I think it's a problem with Dependency Pre-Bundling where Vite doesn't crawl the HTML pages correctly. CRXJS should configure this automatically... not sure if it's a Vite problem or a CRXJS problem.

Questions

  • What version of Vite are you using?
  • Is the HTML file in the manifest or the Vite config?
  • Can you share the config logs from running DEBUG=vite:config vite?

Workaround

What's worked for me in the past is to configure these dependencies manually using the optimizeDeps options, either entries or include:

{
  // ... vite config
  optimizeDeps: {
    entries: ["src/*.html"],
  }
}

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by filipw01
Comment options

You must be logged in to vote
3 replies
@jacksteamdev
Comment options

@jacksteamdev
Comment options

@filipw01
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants