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

Config javascript entityTypesPath ne créée pas des imports relatifs #426

Open
DricomDragon opened this issue Dec 23, 2024 · 0 comments
Open

Comments

@DricomDragon
Copy link
Contributor

Habituellement, préfixer l'import avec ./ permet de faire des imports relatifs, mais cela semble ne pas fonctionner avec la config entityTypesPath du javascript.

Version TopModel : 2.3.2
Version générateur JS : 1.1.3

Extrait de Topmodel.config :

javascript:
  - tags:
      - front
    domainPath: "./domain-defs"
    entityTypesPath: "./stores/entity"

Imports du modèle généré :

import {EntityToType, FieldEntry2} from "./stores/entity";
import {LIBELLE_100} from "../../domain-defs";

Attendu :

import {EntityToType, FieldEntry2} from "../../stores/entity";
import {LIBELLE_100} from "../../domain-defs";
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