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
n/a
Error when running using the custom build script and including "effect-cards".
Example build config:
import { parseSwiperBuildModulesEnv } from './utils/helper.js'; const envBuildModules = parseSwiperBuildModulesEnv(); export const modules = envBuildModules || [ 'navigation', 'effect-cards' ]; export default { modules, };
After running npm run build:prod (using Node 20.10.0) I get the following error:
npm run build:prod
Error [RollupError]: Could not resolve "../shared/swiper-effect-utils.mjs" from "dist/modules/effect-cards.mjs" at error (file:///C:/www/swiper-git/node_modules/rollup/dist/es/shared/parseAst.js:337:30) at ModuleLoader.handleInvalidResolvedId (file:///C:/www/swiper-git/node_modules/rollup/dist/es/shared/node-entry.js:17776:24) at file:///C:/www/swiper-git/node_modules/rollup/dist/es/shared/node-entry.js:17738:26 { code: 'UNRESOLVED_IMPORT', exporter: '../shared/swiper-effect-utils.mjs', id: 'C:\\www\\swiper-git\\dist\\modules\\effect-cards.mjs', watchFiles: [ 'C:\\www\\swiper-git\\dist\\swiper-bundle.mjs', 'C:\\www\\swiper-git\\dist\\shared\\swiper-core.mjs', 'C:\\www\\swiper-git\\dist\\modules\\navigation.mjs', 'C:\\www\\swiper-git\\dist\\modules\\effect-cards.mjs', 'C:\\www\\swiper-git\\dist\\shared\\utils.mjs' ] }
Other effects such as fade build successfully.
The build to be completed successfully.
Build fails.
11.1.14
Windows 10 Firefox/Chrome
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Check that this is really a bug
Reproduction link
n/a
Bug description
Error when running using the custom build script and including "effect-cards".
Example build config:
After running
npm run build:prod
(using Node 20.10.0) I get the following error:Other effects such as fade build successfully.
Expected Behavior
The build to be completed successfully.
Actual Behavior
Build fails.
Swiper version
11.1.14
Platform/Target and Browser Versions
Windows 10 Firefox/Chrome
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: