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

Can't resolve '@/components/...' #9999

Closed
Haltz opened this issue Nov 3, 2020 · 1 comment · May be fixed by #10014
Closed

Can't resolve '@/components/...' #9999

Haltz opened this issue Nov 3, 2020 · 1 comment · May be fixed by #10014

Comments

@Haltz
Copy link

Haltz commented Nov 3, 2020

Describe the bug

When I specfied 'path' in tsconfig.json, webpack ignore it. So if I write

		"paths": {
			"Images/*": ["src/assets/images/*"],
			"Styles/*": ["src/assets/styles/*"],
			"Utils/*": ["src/assets/utils/*"],
			"@/*": ["src/*"],
			"*": ["node_modules/*", "src/typings/*"]
		},

it will report error such as 'Can't resolve '@/components/...'
Maybe you should fix this? This problem cost me quite a little time for a new learner(me).

@stale
Copy link

stale bot commented Dec 25, 2020

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Dec 25, 2020
@Haltz Haltz closed this as completed Dec 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant