DARK MODE 

Posted on Sunday, December 26, 2021 by

How I Solve 'Uncaught TypeError: Vue.component is not a function' JS Error


I noticed this error when I view open the inspect element of my Laravel site. Thankfully the fix is pretty easy.

  1. Open resources > js > app.js
  2. Replace window.Vue = require('vue'); with import Vue from 'vue' (no semicolon)
  3. Run npm run dev

Helpful Links 🔗


No comments:

Post a Comment