rstacruz / nprogress

For slim progress bars like on YouTube, Medium, etc
http://ricostacruz.com/nprogress
MIT License
26.14k stars 1.81k forks source link

Uncaught SyntaxError: Unexpected token 'export' #225

Closed kenkage closed 1 year ago

kenkage commented 3 years ago

I'm using this in angular 8 app. There's a export written "export default NProgress;" in nprogress.js at path "node_modules\nprogress\src" which gives error on console "Uncaught SyntaxError: Unexpected token 'export'".

khaledalam commented 1 year ago

edgardmessias/yii2-nprogress package start using bower-asset/nprogress version 1.0.0-1 which has different structure and uses export keyword in nprogress.js file.

Use bower-asset/nprogress version 0.2.0 instead of "*" or 1.0.0-1 or higher