Skip to content

Error when installing smooth-scrollbar package using npm install <repo> #517

Discussion options

You must be logged in to vote

I found there is difference between GitHub repository and published package

https://unpkg.com/browse/[email protected]/ OR https://www.npmjs.com/package/smooth-scrollbar?activeTab=explore

Processing of esm is a bit complicated in this package, and should be resolved in V9
For now you should take of it and create your own customized smooth-scrollbar lib with

  • release fork of your smooth-scrollbar package
    • rename package.json name field to @tinokaartovuori/smooth-scrollbar
    • npm run bundle then npm run release

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tinokaartovuori
Comment options

Answer selected by tinokaartovuori
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants