Skip to content

Misconfiguration of "main" fields in package.json of cube clients #9619

Closed
@Graphmaxer

Description

@Graphmaxer

Describe the bug

The cube client are not pointing to an existing file in the "main" field of package.json. Resulting in a import error "Error: Failed to resolve entry for package "@cubejs-client/vue3". The package may have incorrect main/module/exports specified in its package.json."

To Reproduce

  • Install the 1.3.16 cube client for Vue 3
  • Setup a vite project with vitest
  • When running tests the error occurs

Expected behavior

The configuration of the client should be good and not generating errors.

Screenshots

Error generated due to bad configuration (in Vite):

Image

In the new 1.3.16 version (not working):

https://www.npmjs.com/package/@cubejs-client/vue3/v/1.3.16?activeTab=code

Image

In the old 1.3.15 verrsion (working):

https://www.npmjs.com/package/@cubejs-client/vue3/v/1.3.15?activeTab=code

Image

Version:

1.3.16

Additional context

This new error is caused by the refactor of the cube core client to TS #9562

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions