graingert / pace

Automatically add a progress bar to your site. #hubspot-open-source
http://github.hubspot.com/pace/docs/welcome
MIT License
4 stars 9 forks source link

pace-progress does not have pace listed as a dependency #2

Open andyrichardson opened 7 years ago

andyrichardson commented 7 years ago

When importing pace-progress in Angular, an error is produced because 'pace' cannot be resolved.

Statement

import 'pace-progress';

Error

Module not found: Error: Can't resolve 'pace' in '/home/[directories]/node_modules/pace-progress' 

Edit: The NPM listing points to this repo but it looks as though this is incorrect.

ianrussel commented 6 years ago

Same problem here. Any solutions?

     Npm install pace-progress

inside node_modules

      pace-progress
           docs
           templates
          ...
          pace.js

Now tried to include in a file

      require('pace-progress/pace.js');

Comes with error

       This dependency was not found:

       * pace in ./node_modules/pace-progress/pace.js