-
Notifications
You must be signed in to change notification settings - Fork 8
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
Trouble importing version 2.1.0 #10
Comments
Hello, please share your vite and typescript versions. |
Sorry - these are my versions.
|
I can confirm the issue @kasperp runs into and the fix works for me as well. I have seen other repositories that expose As far as I know, a package manifest should always provide a Example project using both, top-level https://github.com/sveltejs/svelte/blob/main/packages/svelte/package.json#L7 |
Ah yeah |
Fixed in |
Hello,
Firstly, I want to express my appreciation for the browserslist-to-esbuild package. It's been very useful in my projects.
Recently, I upgraded to version 2.1.0 and encountered an issue with the import statement in my vite.config.ts file. Here's how I'm using it:
After the upgrade, the import fails with the error: Cannot find module 'browserslist-to-esbuild' or its corresponding type declarations.
I'm not an expert with NPM packages, but I found that modifying your
package.json
as shown below resolves the issue:I'm not sure if I should be importing the module differently or if the exports field in
package.json
needs to be specified differently. Could you please provide some guidance on this? I can help out with a PR with this changes if that helps.Thank you for your time and assistance.
The text was updated successfully, but these errors were encountered: