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

CDN build error Material - [email protected]/index.js #193

Open
josephm1 opened this issue Jun 8, 2022 · 1 comment
Open

CDN build error Material - [email protected]/index.js #193

josephm1 opened this issue Jun 8, 2022 · 1 comment

Comments

@josephm1
Copy link

josephm1 commented Jun 8, 2022

Uncaught (in promise) TypeError: Failed to resolve module specifier "material/src/appbar". Relative references must start with either "/", "./", or "../".

Error: No './src/appbar' exports subpath defined in https://ga.jspm.io/npm:[email protected]/ resolving material/src/appbar imported from https://ga.jspm.io/npm:[email protected]/index.js.

As it says, references are not in the correct format

export{default as AppBar}from"material/src/appbar";export{default as Button}from"material/src/button";export{default as Banner}from"material/src/banner";export{default as Calendar}from"material/src/calendar";export{default as Card}from"material/src/card";export{default as Component}from"material/src/component";export{default as Container}from"material/src/container";export{default as Checkbox}from"material/src/checkbox";export{default as Dialog}from"material/src/dialog";export{default as Divider}from"material/src/divider";export{default as Drawer}from"material/src/drawer";export{default as Element}from"material/src/element";export{default as Form}from"material/src/form";export{default as Icon}from"material/src/icon";export{default as Image}from"material/src/image";export{default as Item}from"material/src/item";export{default as Layout}from"material/src/layout";export{default as List}from"material/src/list";export{default as Menu}from"material/src/menu";export{default as Progress}from"material/src/progress";export{default as Slider}from"material/src/slider";export{default as Snackbar}from"material/src/snackbar";export{default as Switch}from"material/src/switch";export{default as Tabs}from"material/src/tabs";export{default as Text}from"material/src/text";export{default as Textfield}from"material/src/textfield";export{default as Toolbar}from"material/src/toolbar";export{default as View}from"material/src/view";export{default as Tree}from"material/src/tree";export{default as emitter}from"material/src/module/emitter";

@guybedford
Copy link
Member

This issue has been resolved - https://generator.jspm.io/#U2NhYGBk9AoO8FUISS0uUfBNLGDITSxJLcpMzHEw0DPRMwYAM6lLfiIA.

Although there is the remaining issue that this library directly imports .svg files - see eg https://unpkg.com/[email protected]/src/slider.js which imports import icon from './skin/material/icon/pin.svg'. This is non-standard so cannot be supported on JSPM until there is such an asset import standard (it's being working on).

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