You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have searched for existing issues that already report this problem, without success.
Stencil Version
4.0.0
Current Behavior
When adding swiper to a stencil project (usage indicated by ionic docs), when used as stated in the swiper docs , swiper is not geting reconized/inject on the bundler causing error when importing import { register } from 'swiper/element/bundle';
[ WARN ] Bundling Warning UNRESOLVED_IMPORT
'swiper/element/bundle' is imported by src/components/my-component/my-component.tsx, but could not be
resolved – treating it as an external dependency
Expected Behavior
When importing import { register } from 'swiper/element/bundle'; importing being resolved and swiper being parte of bundlers
System Info
System: node 18.16.0
Platform: darwin (22.5.0)
CPU Model: Apple M1 (8 cpus)
Compiler: /Users/alanschio/Projects/stecil-swiper/stenil-swiper/node_modules/@stencil/core/compiler/stencil.js
Build: 1691405536
Stencil: 4.0.4 🍧
TypeScript: 5.0.4
Rollup: 2.42.3
Parse5: 7.1.2
Sizzle: 2.42.3
Terser: 5.19.2
I have tried some issues i found like: #2332#2577#3893#2554
But none resolved.
Tried to use nodeResolve property config, and rollup-plugin-node-polyfills but had no success.
The text was updated successfully, but these errors were encountered:
Is there a change of it being related to package.json exports?
The 'swiper/element/bundle' value is on package.json exports, when using directly such import 'swiper/swiper-element-bundle.js'; it works without any warn or problems
Thanks for the issue! This issue appears to be a support request. We use this issue tracker exclusively for bug reports and feature requests. Please use our Discord server for questions about Stencil.
Prerequisites
Stencil Version
4.0.0
Current Behavior
When adding swiper to a stencil project (usage indicated by ionic docs), when used as stated in the swiper docs , swiper is not geting reconized/inject on the bundler causing error when importing
import { register } from 'swiper/element/bundle';
Expected Behavior
When importing
import { register } from 'swiper/element/bundle';
importing being resolved and swiper being parte of bundlersSystem Info
Steps to Reproduce
npm init stencil
npm install swiper
npm run start
ou buildCode Reproduction URL
Additional Information
I have tried some issues i found like: #2332 #2577 #3893 #2554
But none resolved.
Tried to use
nodeResolve
property config, androllup-plugin-node-polyfills
but had no success.The text was updated successfully, but these errors were encountered: