I am getting this error for a nuxt app during the build process on Netlify.
The problem does not occur in my local development environment.
3:05:22 PM: ERROR in app.06cd8a2c6d4fda487471.js from UglifyJs3:05:22 PM: Unexpected token: name ($vm) [./node_modules/vue-simple-photoswipe/src/plugins/PhotoSwipe.js:3,0][app.06cd8a2c6d4fda487471.js:1192,4]]
I saw in this issue: https://github.com/ymyang/vue-photoswipe/issues/3 that vue-simple-photoswipe was intended to prevent an similar issue. I don't know why it works fine locally, but fails on Netlify.
I am getting this error for a nuxt app during the build process on Netlify. The problem does not occur in my local development environment.
3:05:22 PM: ERROR in app.06cd8a2c6d4fda487471.js from UglifyJs
3:05:22 PM: Unexpected token: name ($vm) [./node_modules/vue-simple-photoswipe/src/plugins/PhotoSwipe.js:3,0][app.06cd8a2c6d4fda487471.js:1192,4]]
I saw in this issue: https://github.com/ymyang/vue-photoswipe/issues/3 that vue-simple-photoswipe was intended to prevent an similar issue. I don't know why it works fine locally, but fails on Netlify.
Any advice you can offer would be great!