Closed Getterac7 closed 1 year ago
@Getterac7 Have you tried disabling the baseUrl replacer? Please read the first question from the FAQ #110
Add this to tsconfig.json
{
"compilerOptions": {
...
},
"tsc-alias": {
"replacers": {
"base-url": {
"enabled": false
}
}
}
}
So simple, I should have looked for more docs! Thanks for the quick reply.
tsc-alias seems to be replacing "react" imports with "../react" when the files exist inside a folder called "react". I have to believe this is because there's a folder with the same name as a package import, but why it's trying to replace that I'm not user. Below are the most relevant files as an example of my setup.
tsc-alias version: 1.8.7
package.json:
tsconfig.json:
replacer.js:
src/react/MyContext.tsx:
debug output when running
tsc-alias
: