Skip to content

Conversation

cstavitsky
Copy link
Contributor

Existing Behavior:

  • Received error on trying to deploy the app locally:

Screenshot 2023-10-30 at 10 47 19 AM

Fix:

this is due to the location of the block function definition per https://stackoverflow.com/questions/38357384/ts1206-decorators-are-not-valid-here-angular-2:

The @Component() has to be directly before a class, do you have an exported class just below that decorator?

When I swap the location of block it gets me past that problem ✔️

Screenshot 2023-10-30 at 11 06 14 AM

Result:

I can deploy the app locally.

import { Component } from "@angular/core";
import * as Sentry from "@sentry/browser";

@Component({
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was moved below the block() function definition but no other changes made

@cstavitsky cstavitsky merged commit 23f263a into master Nov 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant