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

[Package Error] "@material-ui/[email protected]" could not be built. #118

Open
oliviertassinari opened this issue Jan 29, 2021 · 2 comments

Comments

@oliviertassinari
Copy link

oliviertassinari commented Jan 29, 2021

https://cdn.skypack.dev/error/build:@material-ui/[email protected]

/*
 * [Package Error] "@material-ui/[email protected]" could not be built. 
 *
 *   Installing package...
 *   Package "@material-ui/core/ExpansionPanel" not found. Have you installed it? 
 *   Package "@material-ui/core/ExpansionPanel" not found. Have you installed it?
 *
 * How to fix:
 *   - If you believe this to be an error in Skypack, file an issue here: https://github.com/pikapkg/cdn/issues
 *   - If you believe this to be an issue in the package, share this URL with the package authors to help them debug & fix.
 *   - Use https://pika.dev/ to find a web-friendly alternative to find another package.
 */

console.warn("[Package Error] \"@material-ui/[email protected]\" could not be built. \nInstalling package...\nPackage \"@material-ui/core/ExpansionPanel\" not found. Have you installed it? \nPackage \"@material-ui/core/ExpansionPanel\" not found. Have you installed it?");
throw new Error("[Package Error] \"@material-ui/[email protected]\" could not be built. ");
export default null;

The ExpansionPanel module doesn't exist anymore (only in v4), it's weird that it's surfacing here. I suspect that Skypack as a caching isolating issue between versions.

Context

I was trying to update our CDN demo that currently uses unpkg with this POC: https://codepen.io/oliviertassinari/pen/gOLOLKM

Notes

Use https://pika.dev/ to find a web-friendly alternative to find another package.

This sentence is semantically wrong.

https://github.com/pikapkg/cdn/issues

This link returns a 301.

@drwpow
Copy link

drwpow commented Feb 1, 2021

Hey @oliviertassinari thanks for raising. Yes we do have an issue building the latest alpha release in Skypack. We are working to fix it soon in an upcoming release; are you able to use v4 as a workaround until then?

@oliviertassinari
Copy link
Author

I haven't looked into v4, we don't actively maintain it. I will try again later on with v5 :)

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