Skip to content
New issue

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´s version 8.2.3 broken on Angular 13 #5791

Closed
5 of 6 tasks
JMJHOX opened this issue Jun 11, 2022 · 7 comments
Closed
5 of 6 tasks

Swiper´s version 8.2.3 broken on Angular 13 #5791

JMJHOX opened this issue Jun 11, 2022 · 7 comments
Labels

Comments

@JMJHOX
Copy link

JMJHOX commented Jun 11, 2022

Check that this is really a bug

  • I confirm

Reproduction link

https://codesandbox.io/s/heuristic-yalow-0k5bi9?file=/package.json

Bug description

Using swiper´s version 8.2.3 on Angular 13 crashes a clean project displaying "Error: Module build failed" .

It says depends upon a library published using Angular version 14.0.0, which requires Angular version 14.0.0 or newer to work correctly. Consider upgrading your application to use a more recent version of Angular.
I tried to replicate the error on codesandbox, but it seems to not be replicating it correctly.

Expected Behavior

On a fresh-clean install of Angular project, installing swiper´s library and importing SwiperModule on app.module.ts, it should be working correctly as expected.

Actual Behavior

When I create a clean project on Angular 13 and install only the swiper´s library through npm with version "^8.2.3" and try to import it on the app.module.ts, it crashes my project and displays an error and angular fails to compile it.

Here's a pastebin with the error logs:
Pastebin of the errors log on terminal

There´s not issue when you make a rollback with the previous version like 8.2.2

Swiper version

8.2.3

Platform/Target and Browser Versions

Web

Validations

  • Follow our Code of Conduct
  • Read the docs.
  • Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
  • Make sure this is a Swiper issue and not a framework-specific issue

Would you like to open a PR for this bug?

  • I'm willing to open a PR
@JMJHOX JMJHOX added the Angular label Jun 11, 2022
@Andre-O
Copy link

Andre-O commented Jun 13, 2022

I have the same issue with 8.1.5. Tried to downgrade and to upgrade to other versions - no success. Even those of our app versions which worked well before can no longer be built!
This issue describes the same problem for version 8.2.2.

@jjamaral
Copy link

Same here. Any help on this please?

@Andre-O
Copy link

Andre-O commented Aug 29, 2022

Same here. Any help on this please?

Did you try to install version 8.2.4? It works for me now.

@jjamaral
Copy link

Same error with 8.2.4 too :(

@vltansky
Copy link
Collaborator

@jjamaral
Copy link

I can't understand why but only works sometimes. Randomly. I dont know if its kinda related with npm caching, but I can't find a fix and can't reproduce also :(

@jjamaral
Copy link

I'm using NX (workspaces). Can be related with it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants