question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error using aliases : compilerOptions.paths must not be set (aliased imports are not supported)

See original GitHub issue

Hi!

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:open
  • Created 2 years ago
  • Reactions:7
  • Comments:5

github_iconTop GitHub Comments

1reaction
stale[bot]commented, Jun 26, 2021

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.

0reactions
stale[bot]commented, Jan 9, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found