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

Sweep (slow): ClickMode and HoverMode has no exported member this package #114

Open
sandeepsaini309 opened this issue Jun 16, 2024 · 1 comment
Labels
sweep Assigns Sweep to an issue or pull request.

Comments

@sandeepsaini309
Copy link

sandeepsaini309 commented Jun 16, 2024

Details

ClickMode and HoverMode has no exported members in this package

image

@sandeepsaini309 sandeepsaini309 added the sweep Assigns Sweep to an issue or pull request. label Jun 16, 2024
Copy link
Contributor

sweep-ai bot commented Jun 16, 2024

Sweeping

75%

Actions

  • ↻ Restart Sweep

❌ Unable to Complete PR

I'm sorry, but it looks like an error has occurred due to a code validation failure. The error message is /mnt/caches/repos/tsparticles/angular/13a43a8aec836b87092e683e7c767034e6767ed18cfa1a5f2539985d8ad63974/main/components/particles/projects/ng-particles/src/lib/ng-particles.component.ts does not exist.. Here were the changes I had planned:

components/particles/projects/ng-particles/src/lib/ng-particles.module.ts

Export the ClickMode type from @tsparticles/engine.
--- 
+++ 
@@ -1,6 +1,6 @@
 import { NgModule } from '@angular/core';
 import { NgxParticlesComponent } from './ng-particles.component';
-import type { ISourceOptions } from '@tsparticles/engine';
+import type { ISourceOptions, ClickMode } from '@tsparticles/engine';
 import { NgParticlesService } from './ng-particles.service';
 
 @NgModule({
@@ -11,4 +11,4 @@
 export class NgxParticlesModule {}
 
 export type IParticlesProps = ISourceOptions;
-export { NgParticlesService };
+export { NgParticlesService, ClickMode };

components/particles/projects/ng-particles/src/lib/ng-particles.module.ts

Update the original_code and new_code blocks as required, ensuring that the
--- 
+++ 
@@ -1,6 +1,6 @@
 import { NgModule } from '@angular/core';
 import { NgxParticlesComponent } from './ng-particles.component';
-import type { ISourceOptions } from '@tsparticles/engine';
+import type { ISourceOptions, ClickMode, HoverMode } from '@tsparticles/engine';
 import { NgParticlesService } from './ng-particles.service';
 
 @NgModule({
@@ -11,4 +11,4 @@
 export class NgxParticlesModule {}
 
 export type IParticlesProps = ISourceOptions;
-export { NgParticlesService };
+export { NgParticlesService, ClickMode, HoverMode };

components/particles/projects/ng-particles/src/lib/ng-particles.component.ts

Import the ClickMode and HoverMode types in particles-background.component.ts.
--- 
+++ 
@@ -13,5 +13,5 @@
 import { from, mergeMap, Subject, Subscription, takeUntil } from 'rxjs';
 import { tsParticles } from '@tsparticles/engine';
 import type { Container, Engine } from '@tsparticles/engine';
-import { IParticlesProps } from './ng-particles.module';
+import { IParticlesProps, ClickMode, HoverMode } from './ng-particles.module';
 import { NgParticlesService } from './ng-particles.service';

Feel free to add more details to the issue description so Sweep can better address it. Alternatively, reach out to Kevin or William for help at https://community.sweep.dev/.

Report a bug.


Tip

To recreate the pull request, edit the issue title or description.

This is an automated message generated by Sweep AI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sweep Assigns Sweep to an issue or pull request.
Projects
None yet
Development

No branches or pull requests

1 participant