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

[codelab] MDC-102 Web conflict with npm package versions #386

Open
mateus-dias-cwb opened this issue Jul 8, 2022 · 1 comment
Open

[codelab] MDC-102 Web conflict with npm package versions #386

mateus-dias-cwb opened this issue Jul 8, 2022 · 1 comment

Comments

@mateus-dias-cwb
Copy link

mateus-dias-cwb commented Jul 8, 2022

If you follow from MDC-101 to MDC-102 with the same project you get an error when trying to compile the project.

The issue is the different versions of npm packages that the tutorial tell you to install.
MDC-101 tells you to
npm install @material/textfield@^6.0.0
but MDC-102 tells you to
npm install @material/drawer @material/list.

The issue is that when installing the packages without specifying a version the installed version happens to be 14, not 6 and this causes the app to not compile.

I solve this by uninstalling the drawer and list packages and reinstalling them with @^6.0.0 at the end.
I think this info should be added somewhere in the codelabs.

@akgupta002
Copy link

akgupta002 commented Jan 7, 2023

If you follow from MDC-101 to MDC-102 with the same project you get an error when trying to compile the project.

The issue is the different versions of npm packages that the tutorial tell you to install. MDC-101 tells you to npm install @material/textfield@^6.0.0 but MDC-102 tells you to npm install @material/drawer @material/list.

The issue is that when installing the packages without specifying a version the installed version happens to be 14, not 6 and this causes the app to not compile.

I solve this by uninstalling the drawer and list packages and reinstalling them with @^6.0.0 at the end. I think this info should be added somewhere in the codelabs.

Thank you @mateus-dias-cwb for sharing your insight. It really helped me out.

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