question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Dependency Version Mismatch -- scss-to-json in npm but not GitHub

See original GitHub issue

Dependency Version Mismatch

What package(s) are you using?

  • carbon-components: 10.10.1
  • carbon-components-react

Detailed description

In the source code on GitHub there is no dependency called scss-to-json in the latest release.

Source Code Reference: https://github.com/carbon-design-system/carbon/blob/master/packages/components/package.json#L68

In the code installed via npm, there is a dependency called scss-to-json.

image

This dependency in turn installs node-sass which becomes the default SCSS compiler if present in node_modules in an Angular project.

It seems like scss-to-json shouldn’t have been in the release bundle based on GitHub code. Also generally a bad practice to have npm code out of sync with git commit history.

Solution

A new release based on the code in GitHub which will remove scss-to-json and hence node-sass from my dependency tree.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
virkt25commented, Mar 9, 2020

Thanks for the info @joshblack – I’ll wait for the next release which should have that dependency dropped 😃

0reactions
vprasanthcommented, Mar 18, 2020

I think this can be closed now, 10.10.2 contains the PR to remove this dependency.

Read more comments on GitHub >

github_iconTop Results From Across the Web

dependency mismatch between github and npm · Issue #9175
Yes, there is mismatch, how is that a bug? npm and GitHub are different services and would need some kind of sync, which...
Read more >
Dependency version mismatch error: Unable to install this ...
Could not resolve dependency: npm ERR! peer react@"^16.8.6" from material-ui-chip-input@2.0.0-beta.2 npm ERR! node_modules/ ...
Read more >
Dependency name mismatches in package.json for git ...
I'm opening this issue because: [ x ] npm is producing an incorrect install ... directory (but not the lockfile), then run npm...
Read more >
npm registry version mismatch #369 - sass/node-sass - GitHub
Github package.json says latest version is 0.9.3 with nan 1.2.0 as dependency. ... But npmjs.org tar files have latest version 0.9.3 but with...
Read more >
[BUG] Overrides are not updating after running npm install
Is there an existing issue for this? I have searched the existing issues This issue exists in the latest npm version I am...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found