ktquez / vue-disqus

Integrate Disqus count and comments in your application Vue 3, with support for SPA
https://ktquez.github.io/vue-disqus/
MIT License
253 stars 26 forks source link

ERROR in 1.client-bundle.60090d500a0bfc6d85e5.js from UglifyJs Unexpected token: punc (() [1.client-bundle.60090d500a0bfc6d85e5.js:1022,10] #16

Closed wsdo closed 6 years ago

wsdo commented 6 years ago

image ERROR in 1.client-bundle.60090d500a0bfc6d85e5.js from UglifyJs Unexpected token: punc (() [1.client-bundle.60090d500a0bfc6d85e5.js:1022,10]

ktquez commented 6 years ago

I'm going to do some testing tomorrow and update the dependencies, okay? Thanks @wsdo

ktquez commented 6 years ago

@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.

BenjaminWaye commented 5 years ago

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]

ktquez commented 5 years ago

@BenjaminWaye Import the component to see if it works import VueDisqus from 'vue-disqus/vue-disqus.vue'

BenjaminWaye commented 5 years ago

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

ktquez commented 5 years ago

@BenjaminWaye Sorrry, try it import VueDisqus from 'vue-disqus/dist/vue-disqus.vue'

BenjaminWaye commented 5 years ago

Now build goes fine however get this error instead [Vue warn]: Unknown custom element: , so the vue-disqus is not loading.

Npm run dev runs fine, it is odd that only npm run build doesn't work