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

Angular Quickstart Guide Issues #1213

Open
elisadinsmore opened this issue Jul 24, 2024 · 1 comment
Open

Angular Quickstart Guide Issues #1213

elisadinsmore opened this issue Jul 24, 2024 · 1 comment

Comments

@elisadinsmore
Copy link
Contributor

Seeing some typing issues when following this guide: https://flatfile.com/docs/apps/embedding/angular/new_space_quickstart

When pasting in component code to the app.component.ts file I get the following error:
Object literal may only specify known properties, but 'styleUrl' does not exist in type 'Component'. Did you mean to write 'styleUrls'?

@Component({
  selector: 'app-root',
  standalone: true,
  imports: [CommonModule, RouterOutlet, SpaceModule],
  templateUrl: './app.component.html',
  styleUrl: './app.component.css',
})

If I update styleUrl to be styleUrls, I get an error that Type 'string' is not assignable to type 'string[]'

Additionally, the sheet parameter does not appear to be available to ISpace, even though it's part of the SimpleOnboarding interface, and other parameters from that interface are allowed.

image

@elisadinsmore
Copy link
Contributor Author

Update: the styleUrls issue can be solved by putting './app.component.css' in an array []

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

No branches or pull requests

1 participant