Skip to content

Add tsc-alias to dev dependencies. #380

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

Merged
merged 1 commit into from
Jul 27, 2023
Merged

Conversation

Offlein
Copy link
Contributor

@Offlein Offlein commented Jul 21, 2023

We recently upgraded to vfm 4.4.4.

In our latest version, our build process includes a failure because it cannot parse an alias in the Typescript definition:

tim-ui/node_modules/vue-final-modal/dist/components/CoreModal/CoreModalProps.d.ts(3,42): error TS2307: Cannot find module '~/Modal' or its corresponding type declarations.

I am not an expert on this but it appears to be because your CoreModalProps.ts file contains a reference with an alias in
it (import type { ModalId, StyleValue } from '~/Modal'), but the vue-tsc build step does not extrapolate this for applications using this package as a dependencies.

This adds tsc-alias to parse those out. Maybe the vue-final team prefers to address this another way (or maybe this is a non-issue that is our error), but if not, this should fix the issue.

@hunterliu1003 hunterliu1003 merged commit f6c02ff into vue-final:master Jul 27, 2023
@hunterliu1003
Copy link
Member

hunterliu1003 commented Jul 27, 2023

@Offlein Thank you so much for your contribution!

It was merged and published in v4.4.5.

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.

2 participants