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

segmented-button is reporting a syntax error. #500

Closed
michaelcuneo opened this issue Aug 23, 2022 · 7 comments
Closed

segmented-button is reporting a syntax error. #500

michaelcuneo opened this issue Aug 23, 2022 · 7 comments
Labels
bug Something isn't working

Comments

@michaelcuneo
Copy link

Describe the bug
segmented-button is reporting a syntax error.

To Reproduce
Steps to reproduce the behavior:
npm i @smui/segmented-button --save-dev
npm run prepare
npm run dev -- --host --port 3000

Implement segmented-button.

Uncaught SyntaxError: The requested module '/node_modules/@material/segmented-button/dist/mdc.segmentedButton.js?v=963b7288' does not provide an export named 'MDCSegmentedButtonFoundation' (at SegmentedButton.svelte? [sm]:28:18)

Expected behavior
Functional Buttons

@michaelcuneo michaelcuneo added the bug Something isn't working label Aug 23, 2022
@hperrin
Copy link
Owner

hperrin commented Aug 23, 2022

This is basically a two bad ways to do it situation, because the upstream segmented button package.json is broken. Are you able to pin it to v6.1.1 until v7 comes out?

@michaelcuneo
Copy link
Author

Ahh, so just throw an @material/segmentedbutton: "v6.1.1" and rm -r node_modules package-lock.json | npm i @material/segmentedbutton...

@michaelcuneo
Copy link
Author

I've just got back to the office to have a play around with this, and it's not working.

I tried adding @material/segmented-button: v6.1.1 to the config, and no such version exists, so I figured maybe you meant your @smui/segmented-button to v6.1.1 so I reinstalled, and it's still dead.

@smui/segmented-button: v6.1.1 still breaks. I tried clamping to v6.0.0 and it's still broken.

@shadowempire123
Copy link

Having the same problem...

@michaelcuneo
Copy link
Author

@shadowempire123 I fixed it eventually... it seems that 6.1.1 is missing and won't install... if it is still in existence my computer is being crap and won't find it... so I just went one lower, and ran npm i @smui/[email protected] -D ... and everything is back to normal.

@shadowempire123
Copy link

@michaelcuneo, thx that works for me!

@hperrin
Copy link
Owner

hperrin commented Apr 24, 2023

I believe I've figured out how to fix this permanently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants