adopted-ember-addons / adopted-ember-addons/ember-electron

Q: Compatibility with typescript

未关闭
#1,495 12 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
JavaScript
星标
802
派生
106
PR 合并指标
30 天内没有已合并 PR

描述

Hi,

I have an working application that I want to convert to typescript.

Looking at https://github.com/electron/forge there is a typescript template that indeed runs when being a stand alone electron app.

However in ember-electron this does not seem to work... I think becuase ember-electron run forge via its 'api' and therefore uses ts config from the enclosing ember app.

This works
```
cd electron-app
yarn electron-forge start
```

But this will fail;
```
ember electron
Starting Electron...
Failed to load: /..../electron-app/forge.config.ts
Cannot use import statement outside a module
```

Is this even possible? Perhaps any example repositories?

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。