gpt4 book ai didi

webpack - 类型错误 : Data must be a string or a buffer when trying touse vue-bulma-tabs

转载 作者:搜寻专家 更新时间:2023-10-30 22:11:29 27 4
gpt4 key购买 nike

我在使用 vue 和 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)

我认为与 webpack 有关,但我不明白问题是什么或如何解决。

要复制它,只需这样做

vue init webpack-simple example1
cd example1
npm i
npm i -S bulma vue-bulma-tabs

然后将其添加到 main.js 文件中

import {Tabs, TabPane} from 'vue-bulma-tabs'

然后运行

npm run dev

等等!有错误。我错过了什么?

最佳答案

所以这个问题的根本原因是有一个导入没有找到你要导入的文件。参见 https://github.com/webpack/webpack/issues/4072#issuecomment-278626604解决方法是添加一些日志记录以帮助您找到无法导入的文件。

关于webpack - 类型错误 : Data must be a string or a buffer when trying touse vue-bulma-tabs,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42137942/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com