-
Notifications
You must be signed in to change notification settings - Fork 332
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
semver-utils
isn't exported
#1461
Comments
Hi, thanks for reporting.
|
|
Vite uses Rollup to automatically tree shake the devDependencies and bundle them for production. https://github.com/raineorshine/npm-check-updates/blob/main/vite.config.mts |
I'm sure it's just a matter of adding it to the Vite config. I'll play around with it next chance I get :). |
The problem occurred with version I think Vite / Rollup don't handle bundles of |
I have added diff --git a/tsconfig.json b/tsconfig.json
index 0d900ee3..7ce5b455 100644
--- a/tsconfig.json
+++ b/tsconfig.json
@@ -15,6 +15,7 @@
"noImplicitAny": true,
"paths": {
"libnpmconfig": ["./src/types/libnpmconfig"],
+ "@types/semver-utils": ["./node_modules/@types/semver-utils"],
"prompts-ncu": ["./src/types/prompts-ncu"]
},
"resolveJsonModule": true, |
I still have the same error. The import of I think your configuration change doesn't fix the problem, because you define a path for |
Hmmm okay. I'll try to think of something else 🤔 |
I have limited time right now, so it would be great if somebody could jump in and investigate this further! 🙏 |
semver-utils
is imported inbuild/index.d.ts
. But the librarysemver-utils
isn't in thepackage.json
dependencies
.Steps to Reproduce
Files:
package.json
index.ts
Steps:
npm install
npx tsc --module nodenext index.ts
Current Behavior
Expected Behavior
No error.
The text was updated successfully, but these errors were encountered: