-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
[Feature] implement "extends" for tsconfig.json #233
Comments
I tried to reproduce this in a simple case but couldn't. Here's what I tried:
Building this with (() => {
// at-dir/test.ts
let x = 123;
// entry.ts
console.log(x);
})(); There's nothing special about the @ symbol that would make it not work, so there must be something else going on. Could you provide some sample code I could run to reproduce the problem? Alternatively, could you describe more about your setup? What does your tsconfig.json file look like? |
Ok, the reason why this happens because I extend main file with another as described here facebook/create-react-app#5645 //tsconfig.js
{
"compilerOptions": {
//...
},
"extends": "./tsconfig.paths.json"
} //tsconfig.paths.json
{
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@/*": ["*"]
}
}
} Seems that missing functional (little bug) |
Thanks for debugging this! Yeah |
By the way I am tried to add paths in tsconfig.js but after one build paths disappears from tsconfig so issue facebook/create-react-app#5118 still actual and I can't build |
🎉 |
I see this weird warning while compiling using esbuild that wasn't there in
The tsconfig.json looks like following: {
"extends": "@spotify/web-scripts/config/tsconfig.json",
"include": ["src"],
"exclude": ["src/__tests__", "src/index.browser.ts"],
"compilerOptions": {
"target": "es3"
}
} and belongs to https://www.npmjs.com/package/ismobilejs I hope that helps to tackle the problem. The warning started showing only since |
This is closed, but for anyone looking for this issue in the future, I found that for local dev, the solution is to add our aliases to the webpage An example:
All this information I found was by @gustavograeff1998 at medium, in this Source. |
Hello, thank you for this library.
I am tried it with existed react+typescript project and have errors with At symbol in my project.
Probably exist a way how to define default path? Seems that automatic detection of baseUrl not work for me.
The text was updated successfully, but these errors were encountered: