rodneyrehm / viewport-units-buggyfill

Making viewport units (vh|vw|vmin|vmax) work properly in Mobile Safari.
MIT License
1.59k stars 151 forks source link

error by require('viewport-units-buggyfill.hacks'); #92

Open hqqxxf opened 6 years ago

hqqxxf commented 6 years ago

require('viewport-units-buggyfill.hacks'); errors below: This dependency was not found:

To install it, you can run: npm install --save viewport-units-buggyfill.hacks

hqqxxf commented 6 years ago

@rodneyrehm

rodneyrehm commented 6 years ago

I don't understand what you're trying to tell me. But to load the hacks you'd probably want to do the following:

require('viewport-units-buggyfill/viewport-units-buggyfill.hacks')
wflixu commented 6 years ago

In npm document , the using demo code is wrong.