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

Access entities in frontend #1

Open
will2hew opened this issue Feb 19, 2024 · 1 comment
Open

Access entities in frontend #1

will2hew opened this issue Feb 19, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@will2hew
Copy link
Owner

There are currently Vite errors when attempting to import entities in the frontend. This would be a meaningful quality of life improvement to avoid having to re-create interfaces in frontend code.

@will2hew will2hew added the enhancement New feature or request label Feb 19, 2024
@iacobucci
Copy link

I'm facing the same problems!!

ERROR [vite-node] [PARSE_ERROR] /server/entities/user.entity.ts:1:67 <br><pre>1 | import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
2 | @Entity("user")
| ^
3 | export class User {
4 | @PrimaryGeneratedColumn()</pre><br>

2 | @Entity("user")
| ^
3 | export class User {
4 | @PrimaryGeneratedColumn()</pre><br>
at /server/entities/user.entity.ts:1:67

[cause]: [vite-node] [PARSE_ERROR] /server/entities/user.entity.ts:1:67 <br><pre>1 | import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
2 | @Entity("user")
| ^
3 | export class User {
4 | @PrimaryGeneratedColumn()</pre><br>

2 | @Entity("user")
| ^
3 | export class User {
4 | @PrimaryGeneratedColumn()</pre><br>
at /server/entities/user.entity.ts:1:67

This is what vite says to me. @will2hew do you have ideas on how to investigate this or to patch a solution?

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

No branches or pull requests

2 participants