We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
After setting up, and using path mappings in tsconfig.json file, webpack gives module resolution error.
tsconfig.json
Module not found: Error: Can't resolve '@module' in '/path/frontend/src/file' @ ./src/App.tsx 7:0-46 22:30-42 @ ./src/index.tsx 7:0-24 11:33-36
Yes
Webpack resolve, alias Typescript path mappings Module not found: Error: Can't resolve '@module' in 'path/to/file'
Using yarn v1.22.17 Node: v14.17.6 OS: MacOS 12.2.1 CPU: Apple M1
yarn create react-app frontend --template typescript
baseUrl
paths
compilerOptions
yarn start
Webpack should get module aliases from tsconfig.json file.
Webpack gives Module not found error.
Module not found
The text was updated successfully, but these errors were encountered:
+1 Same here
Sorry, something went wrong.
+1 the same
...and my axe!
yea, same here. the technology to add aliased imports isn't there yet, it seems.
No branches or pull requests
Describe the bug
After setting up, and using path mappings in
tsconfig.json
file, webpack gives module resolution error.Did you try recovering your dependencies?
Yes
Which terms did you search for in User Guide?
Webpack resolve, alias
Typescript path mappings
Module not found: Error: Can't resolve '@module' in 'path/to/file'
Environment
Using yarn v1.22.17
Node: v14.17.6
OS: MacOS 12.2.1
CPU: Apple M1
Steps to reproduce
yarn create react-app frontend --template typescript
baseUrl
andpaths
tocompilerOptions
intsconfig.json
fileyarn start
Expected behavior
Webpack should get module aliases from
tsconfig.json
file.Actual behavior
Webpack gives
Module not found
error.The text was updated successfully, but these errors were encountered: