-
-
Notifications
You must be signed in to change notification settings - Fork 126
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
Imports aliases from node_modules (_tsup-dts-rollup) #708
Comments
Ah, I had seen someone reporting something similar, but for adapters, could you try that for me please? What IDE are you using (looks like Jetbrains UI) ? This is likely related to the way we bundle the .d.ts, using the experimental option in tsup to split the server & client bundles. |
TypeScript: 5.6.2 |
Preview package to try a potential fix:
|
Some notes: Creating a brand new Next.js app (with {
"compilerOptions": {
"target": "ES2017",
"lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true,
"skipLibCheck": true,
"strict": true,
"noEmit": true,
"esModuleInterop": true,
"module": "esnext",
"moduleResolution": "bundler",
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "preserve",
"incremental": true,
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
"exclude": ["node_modules"]
} It does include |
Ok so after trying a lot of different things that didn't give any different results, I started bisecting away dependencies from the start-ui-web repo (rip & tear style), to see if there was a specific dependency that could throw Intellisense out of whack. I don't yet have hard evidence, but it looks like it's the amount of dependencies that causes the issue, not a specific one in particular. Pruning them to only keep what you'd find in a stock Unfortunately there seems to be a cache in place, which means that when it starts working, we can't go back to a state where it didn't work by just re-adding the dependencies we just removed. Sounds like a VSCode bug rather than something we can do on our end. |
Context
What's your version of
nuqs
?What framework are you using?
Which version of your framework are you using?
Description
I have a project for a client in which I use 🚀 Start UI [web] which uses
nuqs
. At the moment,nuqs
wants to import some aliases fromnode_modules
. It is the only package that want to do that.If I have some time in the next few days, I'll check what is happening with the bundling part, maybe some export that aren't correct in the package.json or something else like that.
Reproduction
The text was updated successfully, but these errors were encountered: