You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2020. It is now read-only.
Using electron-prebuilt-compile, typescript does not correctly support default imports.
I had expected that this would work: import Vue from 'vue';
but, it returns undefined.
Using import Vue as * from 'vue'; works, however it is incompatible with typescript linters and the typescript compiler itself would refuse to compile the same code (b.c. of type errors).
I had assumed that it was an issue with the _compilerc and tsconfig.json files, however after trying every variation that I could find, I've given up on solving it through configuration.
Here are two example configs, both which do not appear to work:
{
"compilerOptions": {
// this aligns with Vue's browser support
"target": "es5",
// this enables stricter inference for data properties on `this`
"strict": true,
// if using webpack 2+ or rollup, to leverage tree shaking:
"module": "es2015",
"moduleResolution": "node"
}
}
Using
electron-prebuilt-compile
, typescript does not correctly support default imports.I had expected that this would work:
import Vue from 'vue';
but, it returns undefined.
Using
import Vue as * from 'vue';
works, however it is incompatible with typescript linters and the typescript compiler itself would refuse to compile the same code (b.c. of type errors).I had assumed that it was an issue with the
_compilerc
andtsconfig.json
files, however after trying every variation that I could find, I've given up on solving it through configuration.Here are two example configs, both which do not appear to work:
and
The text was updated successfully, but these errors were encountered: