Skip to content

Export other modules from package.json using exports field #81

@malavshah9

Description

@malavshah9

Context:

we are using vite as a bundler to bundle our application. We installed this package in our codebase and developed the react component using the example given on the npm page.

Issue:

Now, Vite is giving us an error at build time which is as follows:

Package subpath 'undefined' is not defined by "exports" in <project_path>/node_modules/@sayari/trellis/package.json.

which is true since this package has not exported the @sayari/trellis/bindings/react/renderer and @sayari/trellis/layout/force modules.

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