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 was archived by the owner on Oct 9, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 9, 2020. It is now read-only.
and maybe other browsers, who knows...
The stacktrace below is the result of a remote BrowserStack test.
I have the same result on a local PhantomJS test, but not on a local chrome or firefox.
The tests also pass on remote BrowserStack firefox or chrome (my setup isn't the culprit).
Safari 8.0.8 (Mac OS X 10.10.5) ERROR
Error: (SystemJS) Unable to load dependency C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/github/systemjs/plugin-css@0.1.26/css.js.
eval code
eval@[native code]
tryCatchReject@C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/system-polyfills.src.js:1188:34
runContinuation1@C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/system-polyfills.src.js:1147:18
when@C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/system-polyfills.src.js:935:20
run@C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/system-polyfills.src.js:826:17
_drain@C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/system-polyfills.src.js:102:22
drain@C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/system-polyfills.src.js:67:15
Evaluating C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/github/systemjs/plugin-css@0.1.26.js
Error loading C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/github/systemjs/plugin-css@0.1.26.js
Error loading C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/github/twbs/bootstrap@3.3.7/css/bootstrap.css!http://localhost:9876C:/projects-git/exemples-jspm/jspm-project-es5/public/jspm_packages/github/systemjs/plugin-css@0.1.26.js as "bootstrap/css/bootstrap.css!" from C:/projects-git/exemples-jspm/jspm-project-es5/public/app/components/account/account.module.js
Ok, but it defenitely doesn't work on my side...
Look at the result of my karma tests, which run on Chrome and PhantomJS at the same time.
The Chrome test is working fine, but the PhantomJS one fails while trying to load plugin-css.
01 09 2016 13:02:17.449:INFO [Chrome 52.0.2743 (Windows 7 0.0.0)]: Connected on socket /#z8ZLhPfZRdMlq-GfAAAB with id 23750908
Chrome 52.0.2743 (Windows 7 0.0.0): Executed 17 of 17 SUCCESS (0.336 secs / 0.14 secs)
[13:02:20] Finished 'karma:unit.karma' after 6.4 s
[13:02:20] Starting 'test.unit.karma'...
[13:02:20] Finished 'test.unit.karma' after 6.04 μs
I also tried directly with PhantomJS (outside of karma), and it fails with the same error (with better identification on the code location).
In fact, i can reach the url, but if i try to get a screenshot, i get the error:
There are natural browser bugs between environments, so it may well be in user code that this is happening. It just may take some debugging work to get there unfortunately due to the limited source maps support in Safari.
Are you saying that the getSource function itself is failing? So that running console.log(getSource(load, true)) is providing a failure already? i'd be very surprised if that is the case and it's not the exec(getSource(load, true)) part that's failing.
Activity
guybedford commentedon Aug 30, 2016
I just tested this in Safari 5 and also in PhantomJS with the latest commit and this is definitely working fine.
JSlain commentedon Sep 1, 2016
Ok, but it defenitely doesn't work on my side...
Look at the result of my karma tests, which run on Chrome and PhantomJS at the same time.
The Chrome test is working fine, but the PhantomJS one fails while trying to load plugin-css.
I also tried directly with PhantomJS (outside of karma), and it fails with the same error (with better identification on the code location).
In fact, i can reach the url, but if i try to get a screenshot, i get the error:
guybedford commentedon Sep 6, 2016
There are natural browser bugs between environments, so it may well be in user code that this is happening. It just may take some debugging work to get there unfortunately due to the limited source maps support in Safari.
JSlain commentedon Sep 8, 2016
At that moment, no user-code is executed at all.
It crashes as it tries to require() dependencies tree, and fail with bootstrap's css.
Here's what crashes, in PhantomJS:
system.src.js
getSource(load, true) ==
Any clue?
guybedford commentedon Sep 13, 2016
Are you saying that the
getSourcefunction itself is failing? So that runningconsole.log(getSource(load, true))is providing a failure already? i'd be very surprised if that is the case and it's not theexec(getSource(load, true))part that's failing.JSlain commentedon Sep 13, 2016
No, i was just outputting the value of
getSource(load, true)to help understand what's going on.You asked some debugging work, I cannot go further.
That means...
... is failling in PhantomJS (only on my side it looks like)
JSlain commentedon Sep 14, 2016
Tried debugging that the entire day.
So far, i've found a difference between Chrome and PhantomJS:
Chrome:
PhantomJS:
I think in PhantomJS, it try to use the module before it gets loaded.
I don't fully understand SystemJS code, that's not trivial.