Open CzBuCHi opened 6 years ago
Hey, thanks for the issue!
I haven't run the tests from windows yet. There's probably a few places where switching from hardcoded slash paths to path.resolve()
will fix up things.
That lodash-es
import, was that something specific to your project?
The import
statement that it's bombing on is because import
isn't a thing on node.js yet. I wonder if switching to a non-es version of lodash would help?
Also, https://github.com/standard-things/esm might be able to help as it polyfills import
into node.js.
about path: simplest would be to use path.posix. instead of path. - it forces path with slashes even on windows
about lodash-es: im getting this error on your code (only git clone', 'npm install' and 'npm test
where called) ... switch to non-es lodash can do, because im not who is importing this (lodash is not in package.json) ... now reading about esm .... later
when calling
npm test
i got this error:any idea why is this happening?
PS: also got test fail for "loads from electron" in "src\main\main-window\load-url.test.ts" but that can be fixed by using posix version of path.join