cube-js/cube

Directory import not supported resolving ES modules (fast-deep-equal\es6)

Open

#11,215 opened on Jul 7, 2026

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Rust (1,965 forks)batch import
client:ngxhelp wanted

Repository metrics

Stars
 (19,563 stars)
PR merge metrics
 (Avg merge 5d 16h) (138 merged PRs in 30d)

Description

Describe the bug Getting this error when running vitest and angular 22

Error: Directory import '<my_project>\node_modules\fast-deep-equal\es6' is not supported resolving ES modules imported from '<my_project>\node_modules@cubejs-client\ngx\fesm2022\cubejs-client-ngx.mjs Did you mean to import "fast-deep-equal/es6/index.js"?

I tried to use resolve.alias, optimizeDeps, inline Deps in vitest config, but with no success.

Expected behavior No directory import

Version: 1.6.66

Contributor guide