Skip to content

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

Closed
@Haltz

Description

@Haltz

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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions