Home > other >  ./src/main.js in multi (webpack)-dev-server/client but I do not have main.js. I want to use typescri
./src/main.js in multi (webpack)-dev-server/client but I do not have main.js. I want to use typescri

Time:02-14

I am making a demo Vue.js 3 app with tailwind and typescript. Whenever I run the app I get an error reading:

This relative module was not found:

* ./src/main.js in multi (webpack)-dev-server/client?https://192.168.2.102:8090&sockPath=/sockjs-node (webpack)/hot/dev-server.js ./src/main.js

main.ts

import { createApp } from 'vue';
import App from './App.vue'
import router from './router'
import './styles/app.css';

createApp(App)
    .use(router)
    .mount('#app');

App.vue

<template>
    <div >
        <div >
            {{ hello }}            
  • Related