vanilla-lazyload: v19.0.0 build error with Hugo
Describe the bug v19.0.0 build error with Hugo
To Reproduce Steps to reproduce the behavior:
git clone https://github.com/twbs/blog.git -b xmr/depsnpm i && npm start- See the build error
C:\Users\xmr\Desktop\bootstrap\blog>npm start
> bootstrap-blog@1.0.0 start
> npm run serve
> bootstrap-blog@1.0.0 serve
> hugo server --port 4000 --disableFastRender --noHTTPCache --renderToMemory --printPathWarnings --printUnusedTemplates
Watching for changes in C:\Users\xmr\Desktop\bootstrap\blog\{node_modules,package.json,src}
Watching for config changes in C:\Users\xmr\Desktop\bootstrap\blog\hugo.yml
Start building sites …
hugo v0.124.1-db083b05f16c945fec04f745f0ca8640560cf1ec+extended windows/amd64 BuildDate=2024-03-20T11:40:10Z VendorInfo=gohugoio
Built in 1383 ms
Error: error building site: JSBUILD: failed to transform "/assets/js/lazyload.js" (text/javascript): No matching export in "node_modules/vanilla-lazyload/dist/lazyload.min.js" for import "default"
Expected behavior Should not produce errors.
LazyLoad version Please report which version of LazyLoad you’re using.
- Version 19.0.0
Going back to v18.0.0 works; you can confirm this with git checkout main && npm i && npm start
About this issue
- Original URL
- State: closed
- Created 3 months ago
- Comments: 27 (9 by maintainers)
Yes I think then that it is not necessary to specify anything else… if someone really needs to, I think they will find this issue, which also explains the reason for the current situation and exactly how to solve it.
To be honest I can’t understand much from the nodejs.org documentation 😄 😄
Hey @XhmikosR, thank you for opening this. Yeah, we’ve changed the way LazyLoad is exported, I’m sorry that have impacted your build system. You can rollback safely to 18.0.0 for now, as we try and solve this issue. @erikyo would you have time to check this issue, which was caused by #607?