ktquez / vue-disqus

Integrate Disqus count and comments in your application Vue 3, with support for SPA

Home Page:https://ktquez.github.io/vue-disqus/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

wsdo opened this issue · comments

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

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: , so the vue-disqus is not loading.

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