cube-js / cube-js/cube

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

Open
#11,215 1 comment 0 reactions 0 assignees View on GitHub
client:ngx help wanted
Dominant language
Rust
Stars
20.8k
Forks
2.1k
Avg merge
1d 2h
Merged PRs (30d)
181

Description

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

Error: Directory import '\node_modules\fast-deep-equal\es6' is not supported resolving ES modules imported from '\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

Open the contributing guide

Research direction

Start by reproducing the error with Vitest and Angular 22, then inspect the Vitest configuration and the @cubejs-client/ngx import of fast-deep-equal/es6. Compare the resolved package entry with the suggested fast-deep-equal/es6/index.js path; done means the test setup resolves the ES module without a directory-import error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, javascript
Domain
frontend, testing, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.