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

Probably invalid types definition #9510

Closed
AlexisTessier opened this issue Aug 28, 2024 · 2 comments
Closed

Probably invalid types definition #9510

AlexisTessier opened this issue Aug 28, 2024 · 2 comments
Assignees
Milestone

Comments

@AlexisTessier
Copy link

import type { NapiMinifyExtra } from "../binding";

The line above (the equivalent one in the .d.ts file actually) cause the following error: Cannot find module '../binding' or its corresponding type declarations.

Given the files hierarchy, the correct path should be ./binding I think. I tried to replace it and it then worked. I guess that this file is not written manually though and that the error might come from an other place...

@kdy1 kdy1 added this to the Planned milestone Aug 28, 2024
@kdy1 kdy1 self-assigned this Aug 28, 2024
@AlexisTessier
Copy link
Author

As additional insights: It worked when I was using "@swc/core": "1.7.18" and started to break with "@swc/core": "1.7.19"

@swc-bot
Copy link
Collaborator

swc-bot commented Oct 11, 2024

This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@swc-project swc-project locked as resolved and limited conversation to collaborators Oct 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

3 participants