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

[Bug] Can not build included samples #1740

Open
vrassouli opened this issue Jan 8, 2025 · 0 comments
Open

[Bug] Can not build included samples #1740

vrassouli opened this issue Jan 8, 2025 · 0 comments

Comments

@vrassouli
Copy link

vrassouli commented Jan 8, 2025

Describe the Bug

I'm trying to migrate my project from V1.x to V2.x
My project is a simple viewer, introducing some wrapper API around cornerstone, to be used in a Blazor and C# project.
I did the job with version 1.x, but faced multiple issues with version 2.x
I built a new project, trying to do the job with a simple example available in the repo, i did my best to read and apply all migration documentations, but no luck!

Type script, can compile without issue, but webpack complains:

Module not found: Error: Package path ./dist/umd/index.js is not exported from package D:\projects\Tests\Cornerstone3D-V2Demo\node_modules\@cornerstonejs\tools (see exports field in D:\projects\Tests\Cornerstone3D-V2Demo\node_modules\@cornerstonejs\tools\package.json)

Any help is appreciated, Thanks

Steps to Reproduce

Pushed the sample project to github here

trying to build it with webpack, the error occurs.

The current behavior

Can not pack it with webpack

The expected behavior

It should get built.

OS

Windows 11

Node version

22.0.0

Browser

Chrome

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

No branches or pull requests

1 participant