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

Typia generate incorrectly changes relative import path #573

Closed
Lechros opened this issue Apr 6, 2023 · 2 comments
Closed

Typia generate incorrectly changes relative import path #573

Lechros opened this issue Apr 6, 2023 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@Lechros
Copy link

Lechros commented Apr 6, 2023

Bug Report

Typia generate incorrectly changes relative import path

Summary

  • SDK Version: typia 3.7.1

Relative import path is converted to "interface" when it should be "./interface".

Code occuring the bug

import typia from "typia";
import { SomeInterface } from "../interface";

and

pnpm typia generate   --input home/src/typia   --output home/src

becomes

import typia from "typia";
import { SomeInterface } from "interface";
@samchon samchon self-assigned this Apr 7, 2023
@samchon samchon added the bug Something isn't working label Apr 7, 2023
@samchon samchon closed this as completed in e642ae4 Apr 7, 2023
samchon added a commit that referenced this issue Apr 7, 2023
Fix #573 - exact import path generation
@samchon
Copy link
Owner

samchon commented Apr 10, 2023

It was a bug only occured in Macbook.

Tried to fix it, but no way.

Therefore, I will change setup way like below:

npm install --save typia # must install first
npx typia setup ~
npx typia generate ~

@samchon samchon reopened this Apr 10, 2023
samchon added a commit that referenced this issue Apr 10, 2023
Fix #573 - unable to run setup on Macbook + `pnpm`
@samchon
Copy link
Owner

samchon commented Apr 10, 2023

Upgrade to v3.7.4, then would be fixed.

samchon added a commit to samchon/nestia that referenced this issue Apr 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants