Skip to content

Snowpack Project doesn't compile #3627

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

Closed
2 tasks
ranielzed opened this issue Aug 11, 2021 · 2 comments
Closed
2 tasks

Snowpack Project doesn't compile #3627

ranielzed opened this issue Aug 11, 2021 · 2 comments
Assignees

Comments

@ranielzed
Copy link

Bug Description

I have a snowpack project that uses ui5-webcomponents. It doesn't compile due to the following error:
Package "@ui5/webcomponents-base" exists but package.json "exports" does not include entry for "./dist/asset-registries/Icons.js
I've tried with version 1.0.0-rc.14 and rc.15

Expected Behavior

Should be able to compile

Steps to Reproduce

  1. Install any ui5-webcomponent
  2. run snowpack dev
  3. error mentioned above will show

Context

  • UI5 Web Components version: 1.0.0-rc.15
  • OS/Platform: Windows 11-insider
  • Browser: Chrome 92
  • Affected component: Icons

Log Output / Stack Trace / Screenshots

Priority

  • Low
  • [] Medium
  • High
  • [x ] Very High

The priority indicates the severity of the issue. To set the appropriate priority consider the following criteria:

  • Breaks entire application or system - High or Very High
  • Accessibility issue - Medium or High
  • Functional issue - Medium or High
  • Visual issue - Low or Medium

Note: The priority might be re-evaluated by the issue processor.

@pskelin pskelin self-assigned this Aug 11, 2021
@pskelin
Copy link
Contributor

pskelin commented Aug 12, 2021

@ranielzed This seems to be a snowpack issue and there is even an open issue in the snowpack github repository:
FredKSchott/snowpack#3438

For background, we are using the exports feature of package.json to have nicer looking imports (you can skip the dist part because of the mapping). This was introduced in #3208

I have tested both rollup and vitejs, they both work fine. May I suggest as a workaround to use vitejs until snowpack addresses this issue? Our getting started documentation has a simple usage example:
https://sap.github.io/ui5-webcomponents/playground

Vitejs has the same no-bundling development workflow as snowpack, there is also a comparison to snowpack here:
https://vitejs.dev/guide/comparisons.html#snowpack

@pskelin pskelin closed this as completed Aug 12, 2021
@ranielzed
Copy link
Author

@pskelin Hello Peter, thank you for these suggestions.. These are all insightful and I'll try these out

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

No branches or pull requests

3 participants