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

Path intellisense not working with rewired paths #2

Open
zju1 opened this issue Sep 1, 2021 · 0 comments
Open

Path intellisense not working with rewired paths #2

zju1 opened this issue Sep 1, 2021 · 0 comments

Comments

@zju1
Copy link

zju1 commented Sep 1, 2021

This is my code :

`const rewireAliases = require('react-app-rewire-aliases');
const { paths } = require('react-app-rewired');
const { resolve } = require('path');

module.exports = function override(config , env){
config = rewireAliases.aliasesOptions({
"@root" : resolve(__dirname , ${paths.appSrc}/),
"@components" : resolve(__dirname ,${paths.appSrc}/components/),
"@Mixins" : resolve(__dirname , ${paths.appSrc}/constants/mixins/),
"@const" : resolve(__dirname,${paths.appSrc}/constants/),
"@images" : resolve(__dirname , ${paths.appSrc}/assets/images/),
"@layouts" : resolve(__dirname , ${paths.appSrc}/layouts/),
"@containers" : resolve(__dirname , ${paths.appSrc}/containers)
})(config,env);
r
return config;
}`

Imports are working , but intellisense not worling with "@root , @components ... etc " pahts in VSCode .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant