vue 및 vue-bulma-tab에 이상한 오류가 발생했습니다.TypeError : vue-bulma-tabs를 사용하려고 할 때 데이터가 문자열 또는 버퍼 여야합니다.
Project is running at http://localhost:8081/
webpack output is served from /dist/
404s will fallback to /index.html
crypto.js:74
this._handle.update(data, encoding);
^
TypeError: Data must be a string or a buffer
at TypeError (native)
at Hash.update (crypto.js:74:16)
at HarmonyExportImportedSpecifierDependency.updateHash (/Users/esteban/Projects/experiments/example1/node_modules/webpack/lib/dependencies/HarmonyExportImportedSpecifierDependency.js:144:8)
at /Users/esteban/Projects/experiments/example1/node_modules/webpack/lib/DependenciesBlock.js:33:5
at Array.forEach (native)
at NormalModule.DependenciesBlock.updateHash (/Users/esteban/Projects/experiments/example1/node_modules/webpack/lib/DependenciesBlock.js:32:20)
at NormalModule.Module.updateHash (/Users/esteban/Projects/experiments/example1/node_modules/webpack/lib/Module.js:162:41)
at NormalModule.updateHash (/Users/esteban/Projects/experiments/example1/node_modules/webpack/lib/NormalModule.js:327:30)
at modules.forEach.m (/Users/esteban/Projects/experiments/example1/node_modules/webpack/lib/Chunk.js:253:31)
at Array.forEach (native)
나는 웹팩 관련이있다 생각하지만 난 문제가 무엇인지하지 못하거나 어떻게 고칠 수 있습니다.
는 실행 후
import {Tabs, TabPane} from 'vue-bulma-tabs'
을 파일 main.js이 추가 그냥이
vue init webpack-simple example1
cd example1
npm i
npm i -S bulma vue-bulma-tabs
을, 그것을 재현하는
npm run dev
등함으로써 해결할! 오류가 있습니다. 나는 무엇을 놓치고 있습니까?
예 실제로 찾을 수 없지만 vue-bulma-tabs 패키지는 vue cli로 생성 된 프로젝트가 기본적으로 해당 옵션을 활성화하는 동안 확장자없이 vue 파일의로드를 사용합니다. 주요 문제는 내 프로젝트 코드에 가져올 수없는 파일이 있지만로드중인 일부 패키지입니다. – mcniac
정확히 @ carlous ... 그 근본 원인입니다 –
이것은 매우 도움이 되었어요, 감사합니다! –