Skip to content

在.san文件中配置别名不生效 #53

@jingxin2015

Description

@jingxin2015

"webpack": "5.96.1",
"webpack-cli": "5.1.4",
"webpack-dev-server": "5.1.0"

在 tsconfig.json 和 webpack.config.ts 文件中配置别名功能后,在正常的ts文件中使用如下:
index.ts
import http from '@/util/http';
是可以正常识别这个模块的,但是在.san文件中不行
index.san

<script lang="ts"> import http from '@/util/http'; // 这里 vscode 会提示:Cannot find module '@/util/http' or its corresponding type declarations.San(2307) </script> <style></style>

请问是哪里的问题呢?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions