Error using aliases : compilerOptions.paths must not be set (aliased imports are not supported)
See original GitHub issueHi!
i create that on ts with cra I what to use typescript aliases in project To to that I create tsconfig.paths.json
{
"compilerOptions": {
"baseUrl": "src",
"paths": {
"@components/*" : ["components/*"]
}
}
}
And import it in tsconfig.json:
{
"extends": "./tsconfig.paths.json",
....
}
Then i install tsconfig-paths-webpack-plugin And create webpack.config.js
const TsconfigPathsPlugin = require('tsconfig-paths-webpack-plugin');
module.exports = {
resolve: {
plugins: [new TsconfigPathsPlugin({/* options: see below */ })]
}
}
But on yarn start i got an error
- compilerOptions.paths must not be set (aliased imports are not supported)
Issue Analytics
- State:
- Created 2 years ago
- Reactions:7
- Comments:5
Top Results From Across the Web
compilerOptions.paths must not be set (alias imports are not ...
Path aliases are no longer supported. you can do this now, to directly import files relative to the src directory. go to your...
Read more >Aliased imports are not supported anymore when creating a ...
1. Go to your jsconfig.json file add the base URL to be "." "compilerOptions": { "baseUrl": ".", ... · 2. This problem is...
Read more >[Solved]-compilerOptions.paths must not be set (alias imports ...
Coding example for the question compilerOptions.paths must not be set (alias imports are not supported)-Reactjs.
Read more >react-app-rewire-alias/README.md - UNPKG
Currently, `create-react-app` (CRA) does not support more than one ... 167, > - compilerOptions.paths must not be set (aliased imports are not supported)....
Read more >react-app-rewire-alias: Documentation - Openbase
The paths section must not be configured directly in jsconfig.json or ... file: - compilerOptions.paths must not be set (aliased imports are not...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.
This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.