You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.
I'm using browserify to package my node_modules into a vendor file. It's been working fine until I installed the material-components-web module. After doing that and including it in the packaging, I'm getting the following error:
SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
What is the expected behavior?
For it to not error on packaging
What is the actual behavior?
Getting the following error: SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
Any other information you believe would be useful?
I was on material-design-lite previous and it worked with this build process no problem. When I go to switch to material-components-web, that's when I run into this issue.
I tried switching 'material-components-web' to @material/animate but it gives the same error.
I'm using import / export in my app code and this process doesn't choke on that. Seems to be just how the node package is setup.
This is the browserify setup I have to package vendors:
I think this issue should be open. material components should add the babelify patch to their package.json otherwise we have to patch package.json each time something is installed via yarn.
Bug
What MDC-Web Version are you using?
What browser(s) is this bug affecting?
What OS are you using?
What are the steps to reproduce the bug?
What is the expected behavior?
What is the actual behavior?
Any other information you believe would be useful?
The text was updated successfully, but these errors were encountered: