Created
September 10, 2018 11:29
-
-
Save cuonghuynh/f2debb764521933aeec0c1fd99b065f5 to your computer and use it in GitHub Desktop.
Webpack compile, Module not found: Error: Cannot resolve module 'pace'
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Fix it! | |
# in webpack/config.js | |
resolve: { | |
alias: { | |
pace: 'pace-js' | |
} | |
} | |
# in page.js | |
pace = require('pace'); | |
pace.start({ | |
document: false | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment