transpilePackages not applying ts path aliases within node_modules
Unanswered
Jagdterrier posted this in #help-forum
JagdterrierOP
Hey guys, so weird issue I'm running into. Long story short, I have a library that needs to leverage custom paths within our NextJS
Still not working though. I'm wondering what I may be missing here?
tsconfig.json
. It works fine if the library is pulled in directory via my local filesytem, but whenever it is installed within node_modules
the aliases stop working. In my tsconfig I modified the include
and exclude
values so they look like this: "include": [
"next-env.d.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts",
"node_modules/**/*.ts",
"node_modules/**/*.tsx"
],
"exclude": ["sst.config.ts"],
Still not working though. I'm wondering what I may be missing here?