Closed wsdo closed 6 years ago
I'm going to do some testing tomorrow and update the dependencies, okay? Thanks @wsdo
@wsdo vue-disqus have no dependencies.
This problem is with Uglify.js, please update the package or remove the node_modules/ directory and install again.
Did removing the node_modules directory work? I tried that still get the same error and updating Uglify.js doesn't help.
Getting: ERROR in static/js/vendor.0b58893f8f582079389d.js from UglifyJs Unexpected token: punc (() [./node_modules/vue-disqus/dist/vue-disqus.js:1,632][static/js/vendor.0b58893f8f582079389d.js:16654,591]
@BenjaminWaye
Import the component to see if it works
import VueDisqus from 'vue-disqus/vue-disqus.vue'
This dependency was not found:
- vue-disqus/vue-disqus.vue in ./src/main.js To install it, you can run: npm install --save vue-disqus/vue-disqus.vue
I have run npm install vue-disqus
@BenjaminWaye
Sorrry, try it import VueDisqus from 'vue-disqus/dist/vue-disqus.vue'
Now build goes fine however get this error instead [Vue warn]: Unknown custom element:
Npm run dev runs fine, it is odd that only npm run build doesn't work
ERROR in 1.client-bundle.60090d500a0bfc6d85e5.js from UglifyJs Unexpected token: punc (() [1.client-bundle.60090d500a0bfc6d85e5.js:1022,10]