Using import in laravel is always the wrong path.

blade template is as follows
clipboard.png


clipboard.png

app.js

clipboard.png


clipboard.png

Can"t

be introduced locally? the Great God asks for advice

.
May.06,2022

  1. path is wrong. The web page directly accesses the public directory and cannot access resources
  2. you can't use vue directly in your browser, you need to package it into js with laravel mix. That's why you have no problem putting it in app.js. Npm run production or dev will help you compile
  3. .

solution: configure the packaging path in webpack.mix.js for each page you need, and then reference the packaged js

in the page you need.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e4084d-44100.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e4084d-44100.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?