Aliases in webstorm? #2172
-
Hello I've created a new react app using module.exports = {
webpack: {
alias: {
'react-native$': 'react-native-web'
}
},
}; this seems to work but the IDE is giving me warnings and the auto imports are not coming from the alias automatically. I've search a bit in google with the most popular answer being updating the webpack configuration but the default of Does anyone knows how to fix this without having to eject create react app? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
nevermind, the default webpack configuration in |
Beta Was this translation helpful? Give feedback.
nevermind, the default webpack configuration in
node_modules/react-scripts
has all this without the need of addingcraco
. You just need to point webstorm to that webpack file inside the node_modules/react-scripts folder.