Skip to content
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

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

Open
evskorobogatij opened this issue Apr 26, 2021 · 5 comments

Comments

@evskorobogatij
Copy link

evskorobogatij commented Apr 26, 2021

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)

@ghost
Copy link

ghost commented May 16, 2021

change the verifyTypeScriptSetup file's compilerOptions

@stale
Copy link

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.

@stale stale bot added the stale label Jun 26, 2021
@Silventino
Copy link

Any news?

@stale stale bot removed the stale label Jul 3, 2021
@ccqgithub
Copy link

Any news?

@stale
Copy link

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.

@stale stale bot added the stale label Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants