-
Notifications
You must be signed in to change notification settings - Fork 22
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
import 外部 ts 文件报错 #4
Labels
Comments
将 utils 放到和 san.ts 平级的目录下, 就没有问题了 |
还有个问题: 模板字符串的反引号(`)没有被转换为引号, 编译产出的 php 文件如下: class DemoComponent extends Component {
public static $computed;
public static $template = `<div>\\n {{ isOk ? 'san-ssr import bug.' : ''}}\\n </div>`;
} |
模板字符串语法是 ts2php 的问题,参见:searchfe/ts2php#66 |
template 使用模板字符串并包含变量后, 会导致编译产出在 PHP 运行时报错, 和 @harttle 讨论后将所有 static 属性后置。 |
🎉 This issue has been resolved in version 1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
san 组件的 ts 文件里引用依赖的工具包 ts 文件, 报错
Error: Cannot find module 'xxx'
, 示例代码如下:报错如下:
The text was updated successfully, but these errors were encountered: