We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Swiper 6.4.15
Files, generated by Svelte don't contain the line exports.__esModule = true;
exports.__esModule = true;
node_modules\swiper\cjs\svelte\swiper.js
node_modules\swiper\cjs\svelte\swiper-slide.js
class Swiper extends SvelteComponent { //... } //exports.__esModule = true; //missing exports.default = Swiper;
Therefore _interopRequireDefault() in node_modules\swiper\swiper-svelte.cjs.js returns .default.default property instead of simple.default:
_interopRequireDefault()
node_modules\swiper\swiper-svelte.cjs.js
.default.default
.default
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } var _swiper = _interopRequireDefault(require("./cjs/svelte/swiper")); exports.Swiper = _swiper.default; var _swiperSlide = _interopRequireDefault(require("./cjs/svelte/swiper-slide")); exports.SwiperSlide = _swiperSlide.default;
Possible solutions:
swiper += '\nexports.__esModule = true;'
swiperSlide += '\nexports.__esModule = true;'
await fs.writeFile ...
swiper/scripts/build-svelte.js
.__esModule
function _interopRequireDefault(obj) { return obj && obj.default ? obj : { default: obj }; }
The text was updated successfully, but these errors were encountered:
478289c
I still have this issue... (v6.5.0)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Swiper 6.4.15
Files, generated by Svelte don't contain the line
exports.__esModule = true;
node_modules\swiper\cjs\svelte\swiper.js
node_modules\swiper\cjs\svelte\swiper-slide.js
Therefore
_interopRequireDefault()
innode_modules\swiper\swiper-svelte.cjs.js
returns.default.default
property instead of simple.default
:Possible solutions:
swiper += '\nexports.__esModule = true;'
;and
swiperSlide += '\nexports.__esModule = true;'
;before
await fs.writeFile ...
inswiper/scripts/build-svelte.js
_interopRequireDefault()
innode_modules\swiper\swiper-svelte.cjs.js
to check.default
instead of.__esModule
:The text was updated successfully, but these errors were encountered: