gpt4 book ai didi

javascript - "rollup-plugin-svelte"以下包没有导出它们的 `package.json`

转载 作者:行者123 更新时间:2023-12-05 01:56:36 28 4
gpt4 key购买 nike

我是 svelte.js 的新手。请帮我解决一下

在这里,当我在我的 .svelte 文件中导入滑动器轮播时。它向我显示了这个错误

[rollup-plugin-svelte] The following packages did not export their package.json file so we could not check the "svelte" field. If you had difficulties importing svelte components from a package, then please contact the author and ask them to export the package.json file.

Screenshot of Terminal Error. Please check this

这是我的代码文件。这是轮播 slider 的另一个组件。但我在导入滑动器轮播时看到了这张图片。

<script>
import { Swiper, SwiperSlide } from "swiper/svelte";
import PorfolioCard from "./../components/porfolio-card.svelte";
import SectionTitle from "./../components/sectionTitle.svelte";
import "swiper/css";
</script>

<section id="portfolio">
<SectionTitle title="My Portfolio" subtitle="Visit My Portfolio And Keep your feedback" />

<div class="mt-4 px-1 px-md-3 px-lg-5">
<Swiper>
<SwiperSlide>
<PorfolioCard />
</SwiperSlide>

<SwiperSlide>
<PorfolioCard />
</SwiperSlide>

<SwiperSlide>
<PorfolioCard />
</SwiperSlide>

<SwiperSlide>
<PorfolioCard />
</SwiperSlide>

<SwiperSlide>
<PorfolioCard />
</SwiperSlide>

</Swiper>
</div>
</section>

最佳答案

目前没有办法消除这个警告。然而,关于它的 GitHub 存储库上有一个 Unresolved 问题。

https://github.com/sveltejs/rollup-plugin-svelte/issues/181

关于javascript - "rollup-plugin-svelte"以下包没有导出它们的 `package.json`,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69768925/

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