Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
아마 vue에서 일반 <script> 구문 사용시 제약이 있는 것 같은데 아직 vue는 학습 전이라 해결책을 찾지 못했습니다.
그래서 설치한 vue 프론트 엔드 스캐폴딩을 삭제하려고
$ php artisan preset none 을 실행하니 'Command "preset" is not defined." 에러가 발생하고 삭제되지가 않습니다.
php artisan ui vue 명령어를 통해 vue 프론트 엔드 스캐폴딩을 설치하였습니다.
그런데 이후로 기존 작성한 <script> </script> 로 작성한 뷰에서 아래와 에러가 발생하고 있습니다.
app.js:38259 [Vue warn]: Error compiling template:
Templates should only be responsible for mapping the state to the UI. Avoid placing tags with side-effects in your templates, such as <script>, as they will not be parsed.
아마 vue에서 일반 <script> 구문 사용시 제약이 있는 것 같은데 아직 vue는 학습 전이라 해결책을 찾지 못했습니다.
그래서 설치한 vue 프론트 엔드 스캐폴딩을 삭제하려고
$ php artisan preset none 을 실행하니 'Command "preset" is not defined." 에러가 발생하고 삭제되지가 않습니다.
해결책을 찾지 못해 프로젝트를 새로 설치해야 하나 고민하고 있습니다.
도움을 부탁 드립니다.
(질문 공간을 laravel로 변경하였습니다)