반응형
Uncaught ReferenceError: 모듈이 build.js:1 vuejs, webpack, SSR(npm 스크립트 로더를 사용했지만 사용하지 않음)에 정의되지 않았습니다.
bundle.js를 통합하는 동안 오류가 발생하여 "script-sys"를 사용했지만 사용하지 않았습니다.라이브러리사용vuejs,vuex,sr,vuetify,webpack.js
오류:
build.js:1 Uncaught ReferenceError: module is not defined
at build.js:1 .
스크립트 변경
<script src="/dist/build.js"></script>
로.
<script nomodule src="/dist/build.js"></script>
스크립트 태그에 모듈 특성을 추가하지 않습니다. 이는 libraryTarget을 사용했기 때문입니다. 웹 팩 구성에서 'commonjs2'.
마지막으로 나의 색인. 그들은 다음과 같을 것입니다.
<!doctype html>
<html lang="en">
<head>
</head>
<body>
<script nomodule src="/dist/build.js"></script>
</body>
</html>
참고:
do not make any changes in src attribute
언급URL : https://stackoverflow.com/questions/56581457/uncaught-referenceerror-module-is-not-defined-at-build-js1-vuejs-webpack-ssr
반응형
'programing' 카테고리의 다른 글
JDBC 씬 드라이버에 대한 NLS_LANG 설정? (0) | 2023.06.11 |
---|---|
파이썬으로 단어가 영어 단어인지 확인하는 방법은 무엇입니까? (0) | 2023.06.11 |
VBA 프로젝트의 조건부 컴파일 속성을 프로그래밍 방식으로 변경하는 방법 (0) | 2023.06.11 |
UI 테이블 보기에서 구분선을 제거하는 방법이 있습니까? (0) | 2023.06.11 |
선택 항목만 있는 트랜잭션에서 커밋과 롤백 사이에 차이점이 있습니까? (0) | 2023.06.11 |