Skip to content
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.

Lots of error when installing npm:material-components-web #166

Open
andrewharry opened this issue Jul 31, 2017 · 2 comments
Open

Lots of error when installing npm:material-components-web #166

andrewharry opened this issue Jul 31, 2017 · 2 comments

Comments

@andrewharry
Copy link

I believe that material-components-web is written in a ES2015 module style which causes lots of issues when I tried to include it in a new jspm / system.js based website.

lots of errors logged in the .jspm-errors files.
"Unexpected reserved word export"
"Unexpected reserved word import"
etc

@andrewharry
Copy link
Author

Do I need to flag these modules as being 'esm' format?

meta: {
'@material/*': {
format: 'esm'
}
}

I will try this tonight... maybe this will give system.js the information it needs.
I am thinking I need to transpile on the browser while in development but transpile and bundle for production. Does that sound about right?

@aluanhaddad
Copy link
Collaborator

It should just work out of the box if you're using transpiler: 'plugin-babel' or transpiler: 'plugin-traceur' or transpiler: 'plugin-typescript', what version of jspm are you using?

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

No branches or pull requests

2 participants