Skip to content

fix: update vite dep to exclude posthog from pre bundle#1034

Merged
carddev81 merged 1 commit intomainfrom
calisio/vite-prebundling
Nov 11, 2025
Merged

fix: update vite dep to exclude posthog from pre bundle#1034
carddev81 merged 1 commit intomainfrom
calisio/vite-prebundling

Conversation

@calisio
Copy link
Copy Markdown
Contributor

@calisio calisio commented Nov 3, 2025

Description of the change

Kept getting this error on make dev that was related to node_modules. Even clearing node_modules and re installing dependencies would not fix the issues. The error specified was the following:

frontend-1 | The file does not exist at "/app/node_modules/.vite/deps/chunk-QDIOEQG4.js?v=9698f877" which is in the optimize deps directory. The dependency might be incompatible with the dep optimizer. Try adding it to `optimizeDeps.exclude`.

It seemed to be the pre bundling of posthog, so that was excluded in the vite optimize deps. Let me know if there are any concerns with including this in the vite config.

  • Related issues: no asana issue

Screenshot(s)

no ui changes

@calisio calisio requested a review from a team as a code owner November 3, 2025 16:12
@calisio calisio requested review from corypride and removed request for a team November 3, 2025 16:12
@carddev81 carddev81 self-requested a review November 11, 2025 14:42
@carddev81 carddev81 merged commit d487ae0 into main Nov 11, 2025
9 checks passed
@carddev81 carddev81 deleted the calisio/vite-prebundling branch November 11, 2025 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants