Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
malavshah9 opened this issue Nov 6, 2023 · 1 comment
Open

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

malavshah9 opened this issue Nov 6, 2023 · 1 comment

Comments

@malavshah9
Copy link

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.

@brianlove
Copy link

@malavshah9 I suggest trying the 0.6.0 release instead of the latest (0.6.1) release. I was just updating a project I worked on last year (which was using 0.4.3), and while I got that same error when using 0.6.1, things seem to work fine with 0.6.0 (no clue why, though).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants