-
-
Notifications
You must be signed in to change notification settings - Fork 512
"gulp test" fails with typescript skeleton #823
Comments
CC: @AshleyGrant |
Ok, seems like I figured it out: With the typescript package at version 2.2.2 it works on my machines (Mac, Linux, Windows). |
@EisenbergEffect this is not fixed yet. Testing the TypeScript + JSPM skeleton is broken in master. |
Can confirm hitting this as well let me see if I can push a PR up. |
Verified locking version of TypeScript works. |
This affects skeleton-typescript-aspnetcore too. However in my testing the Typescript breaking version is 2.3.1. FYI It was an Import statement that triggered the break, a single console.log statement worked. Fix skeleton package.json with devDependencies.typescript: "2.3.0", |
@rockResolve can you point us to the problematic import statement? We'd really appreciate a PR too :) |
The very first import: in setup.ts import 'aurelia-polyfills'; I traced the modules going through karma-systemjs adapter.js parallelImportFiles. For PR would you go to 2.3.0 (ie. without the remaining 2.3 patches) or 2.2.2 (fully patched) |
I've just ended up here after trying to work out why tests no longer run since updating to [email protected]. Where does an upstream bug need opening? WORK AROUND It looks like the SystemJS ES6 module detection is picking up some comments in the 2.3.1+ source so you can override the meta in systemjs section in
|
Thanks @timfish. The workaround worked for me. I don't understand how fixing the ts version to 2.2 can be considered a "fix" or closes this bug? |
This is not a bug with Aurelia. This is a bug in another library, most likely That library is calling for maintainers and not updating at the moment. https://github.com/rolaveric/karma-systemjs/issues Unfortunately for us this means that locking the version of TypeScript until an alternative solution closes this bug. If anyone would like to explore fixes on their own or move to maintain the |
The @timfish solution only partially worked for me. In karma.conf.js
Not sure I would describe it as a workaround: SystemJs does not claim it's module detection will always work - its just fortunate it has up until Typescript version 2.3.0. See https://github.com/systemjs/systemjs/blob/master/docs/module-formats.md#module-format-detection PR created |
Hello, we ran across the same issue. Here is a reference link to why this fails since version 2.3.1 - systemjs/builder#828. Solution is to use plugin-typescript. I am happy to submit a pull request. |
I'm submitting a bug report
Aurelia Skeleton Version
skeleton-typescript
Framework Version:
1.1.2
My environment:
Operating System:
Windows 10 64-bit
Node Version:
6.9.1
NPM Version:
3.10.8
JSPM Version
JSPM 0.16.53
Browser:
Chrome 58.0.3029.96 (64-bit)
Language:
TypeScript 2.2.2
Current behavior:
When executing "gulp test" Karma starts a new instance of Google Chrome, connects on a new socket and then fails with the message "Disconnected (1 times), because no message in 10000ms. [...]".
Expected/desired behavior:
All included tests should be executed.
The text was updated successfully, but these errors were encountered: