MProgress.js icon indicating copy to clipboard operation
MProgress.js copied to clipboard

Add main entrypoint to package.json

Open ThomasHickman opened this issue 7 years ago • 2 comments

At the moment, if you execute require("mprogress") in node, the error Error: Cannot find module 'mprogress' is produced. Adding a main entry in package.json will fix this

ThomasHickman avatar Nov 01 '17 13:11 ThomasHickman

+1

slince avatar Dec 27 '17 13:12 slince

For any future googlers (since this repo seems to be unmaintained), import it directly from the build/ dir:

import MProgress from 'mprogress/build/js/mprogress.min.js'
import 'mprogress/build/js/mprogress.min.css'

andreasvirkus avatar Nov 22 '18 13:11 andreasvirkus