Open kacluk123 opened 3 years ago
I have the same error, Did you fix this?
Assume everything is correct- Perhaps try to restart TypeScript language server in vscode?
This worked for me:
node_modules
watchman watch-del-all && rm -rf $TMPDIR/react-native-packager-cache-* &&
rm -rf $TMPDIR/metro-bundler-cache-* && rm -rf node_modules/ && npm cache clean --force &&
npm install && npm start -- --reset-cache
And I use it like this
import { AppStateHandler, FocusListeners, LoadingContainer } from '@components';
This is TS2307. @kacluk123 it's good practice to include the error code, not just the text.
Anybody know how to fix it?
@MariusCatanoiu can you clarify what you mean? You were able to get this working?
This is TS2307. @kacluk123 it's good practice to include the error code, not just the text.
Anybody know how to fix it?
@MariusCatanoiu can you clarify what you mean? You were able to get this working?
I updated the previous comment
Babel resolver does not work in my next.js project
My .babelrc file
My tsconfig
And when im trying to use it like that
vscode throws an error
Cannot find module '@components/login' or its corresponding type declarations.