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.
Context:
we are using
viteas 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:
which is true since this package has not exported the
@sayari/trellis/bindings/react/rendererand@sayari/trellis/layout/forcemodules.