1 year ago

template or render function not defined.

Posted 1 year ago by shaqaruden

I have started a project from scratch bringing in Laravel Mix, Tailwind, and VueJS.

I created my first component to test

        <h1 class="bg-green text-blue">Hello World!</h1>

export default {
    data() {
        return {

<style lang="css">

and registered in in app.js

window.Vue = require('vue');

Vue.component('pacerboard', require('./components/PacerBoard.vue'));

const app = new Vue({
    el: '#app'

and then try to display it

<!DOCTYPE html>

<html lang="en">
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="css/app.css">
    <div id="app">
    <script src="js/app.js" charset="utf-8"></script>

but I am getting an error when loading the page

Image of Error

Please sign in or create an account to participate in this conversation.