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
Hello!
I'm using Swiper for last few months and never has a problem with build custom script.
But after last bigger upgrade to version 10 I can't build it on my computer.
I've try all 10.x version, but all I get is that info:
`> node scripts/build --prod
TypeError: line.replaceAll is not a function
at file:///E:/Download/swiper-master/scripts/utils/get-element-styles.js:66:25
at Array.map ()
at proceedReplacements (file:///E:/Download/swiper-master/scripts/utils/get-element-styles.js:54:6)
at getElementStyles (file:///E:/Download/swiper-master/scripts/utils/get-element-styles.js:151:21)
at async buildModules (file:///E:/Download/swiper-master/scripts/build-modules.js:114:35)
at async Build.run (file:///E:/Download/swiper-master/scripts/build.js:31:9)
at async file:///E:/Download/swiper-master/scripts/build.js:43:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:prod: node scripts/build --prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2023-08-13T16_19_45_039Z-debug.log`
I've try all possible solutions from internet - update npm, clear cache of npm, I've even try on second computer, but I can't do anything.
This discussion was converted from issue #6927 on August 13, 2023 17:06.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Check that this is really a bug
Reproduction link
https://github.com/nolimits4web/swiper/
Bug description
Hello!
I'm using Swiper for last few months and never has a problem with build custom script.
But after last bigger upgrade to version 10 I can't build it on my computer.
I've try all 10.x version, but all I get is that info:
`> node scripts/build --prod
TypeError: line.replaceAll is not a function
at file:///E:/Download/swiper-master/scripts/utils/get-element-styles.js:66:25
at Array.map ()
at proceedReplacements (file:///E:/Download/swiper-master/scripts/utils/get-element-styles.js:54:6)
at getElementStyles (file:///E:/Download/swiper-master/scripts/utils/get-element-styles.js:151:21)
at async buildModules (file:///E:/Download/swiper-master/scripts/build-modules.js:114:35)
at async Build.run (file:///E:/Download/swiper-master/scripts/build.js:31:9)
at async file:///E:/Download/swiper-master/scripts/build.js:43:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] build:prod:
node scripts/build --prod
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] build:prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\user\AppData\Roaming\npm-cache_logs\2023-08-13T16_19_45_039Z-debug.log`
I've try all possible solutions from internet - update npm, clear cache of npm, I've even try on second computer, but I can't do anything.
Expected Behavior
No response
Actual Behavior
No response
Swiper version
10.x
Platform/Target and Browser Versions
Chrome
Validations
Would you like to open a PR for this bug?
Beta Was this translation helpful? Give feedback.
All reactions