前端杂记 2022-04-11 14:50 采纳率: 0%
浏览 63

vue中使用globby报错

问题遇到的现象和发生背景
<script lang="ts" setup>
import { globby } from 'globby';

const paths = await globby(['*', '!cake']);

console.log(paths);
</script>

These dependencies were not found:

* node:fs in ./node_modules/globby/index.js
* node:path in ./node_modules/globby/index.js
* node:process in ./node_modules/globby/ignore.js
* node:stream in ./node_modules/globby/utilities.js
* node:url in ./node_modules/globby/utilities.js
运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果
  • 写回答

1条回答 默认 最新

  • _念_ 2022-04-11 15:02
    关注

    globby啥玩意,你装了这个包吗

    评论

报告相同问题?

问题事件

  • 创建了问题 4月11日