inertiajs / pingcrm

A demo application to illustrate how Inertia.js works.
http://demo.inertiajs.com
MIT License
2.11k stars 772 forks source link

Error Compiling Assets in Linux #65

Closed stevepop closed 4 years ago

stevepop commented 4 years ago

I installed a sample of this application on a Mac and I successfully built the assets using yarn and yarn dev. When I ran this on a Linux based server however, I was getting the following errors;

 ERROR  Failed to compile with 1 errors                                                                                                                     10:55:53 PM

This relative module was not found:

* @/Shared/Dropdown in ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Shared/Layout.vue?vue&type=script&lang=js&
 5 assets

ERROR in ./resources/js/Shared/Layout.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Shared/Layout.vue?vue&type=script&lang=js&)
Module not found: Error: Can't resolve '@/Shared/Dropdown' in '/www/cec4u.co.uk/releases/11/resources/js/Shared'
 @ ./resources/js/Shared/Layout.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Shared/Layout.vue?vue&type=script&lang=js&) 75:0-41
 @ ./resources/js/Shared/Layout.vue?vue&type=script&lang=js&
 @ ./resources/js/Shared/Layout.vue
 @ ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/Pages/Admin/Dashboard.vue?vue&type=script&lang=js&
 @ ./resources/js/Pages/Admin/Dashboard.vue?vue&type=script&lang=js&
 @ ./resources/js/Pages/Admin/Dashboard.vue
 @ ./resources/js/Pages sync ^\.\/.*$
 @ ./resources/js/app-admin.js
 @ multi ./resources/js/app-admin.js

This error occurs when loading the shared components with Layout.vue I spent a couple of hours trying to figure this out but to no avail. Operating system: Ubuntu 18.04 NPM : 6.13.4 Node: v10.18.1 Vue: 2.6.11 Laravel Mix: 5.0.1

stevepop commented 4 years ago

I have resolved this issue. Closing this.