You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 26, 2019. It is now read-only.
I'm trying to implement alias for importing modules from root of my project. According to typescripts docs it can be done by adding following configuration to 'tsconfig.json' file
"baseUrl": "./",
"paths": {
"~/*": ["./src/*"]
I get no Typescript compile error, but error from webpack i.e.
Failed to compile.
./src/App.tsx
Module not found: Can't resolve '~/components/forms' in '/Users/mike/dev/js/react-ts/src'
My env:
macOS 12.12.3
node v. 6.10
create-react-app 1.4.3
react-scripts-ts 2.8.0