Skip to content

Error: Cannot read property 'System' of undefined #38

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
maxali opened this issue Jan 30, 2017 · 14 comments
Closed

Error: Cannot read property 'System' of undefined #38

maxali opened this issue Jan 30, 2017 · 14 comments

Comments

@maxali
Copy link

maxali commented Jan 30, 2017

I am getting Cannot read property 'System' of undefined whenever I try to npm start. I clone the package again and still getting this error.

image

@piotrwitek
Copy link
Owner

piotrwitek commented Jan 30, 2017

From description it seems like a missing System.js dependency

I'm guessing, did you execute all the installation process steps?
In particular these: npm install & npm run init?

@rvangsgaard
Copy link

I am getting the exact same error. I did run the commands in the correct order.

At first run I did not have Global JSPM installed, if that should make a difference.

@piotrwitek
Copy link
Owner

Cool, thanks for reporting, I will get a clean clone and try to reproduce on my machine.
Btw. what OS are you using?

@rvangsgaard
Copy link

Originally I used MacOS X. I just tried from Ubuntu 16.04 with the same results - and this time I did install JSPM before anything else :)

@JulianIsrael
Copy link

I'm getting same issue.

@JulianIsrael
Copy link

I have another version of the same project, when I installed it at first it was using SystemJS v0.19.41 and the problem came when it suddenly started to use SystemJS v0.20.4 Dev. Check the system.js file within jspm_packages.

@rvangsgaard
Copy link

My system.js is v0.20.4 Dev as well. Can I force it to use v0.19.41?

@rvangsgaard
Copy link

It did not help to use system.js 0.19.32 in my case.

@JulianIsrael
Copy link

I copy and paste the systemjs from my other project and it worked. another thing that worked to me was updating the jspm to the latest beta and also the typescript plugin, it would require that you change the code to match the breaking changes like import {poperty} from 'noESModule' to be impor noEsModule from 'noESModule'; noESModule.property;

@JulianIsrael
Copy link

JulianIsrael commented Feb 1, 2017

I created this issue, jspm/jspm#223, maybe the "^0.17.0-beta.32" because of the ^ is downloading the latest beta. we can try using "0.17.0-beta.32" instead, and see if it works.

update: it seems to work, so by locking the version to be exact "jspm 0.17.0-beta.32" would work. but I suggest you to update it to the latest and fix your imports.

@piotrwitek
Copy link
Owner

@JulianIsrael you linked a wrong issue, this is correct I believe: jspm/jspm#2233

@jcrben
Copy link

jcrben commented Feb 6, 2017

@JulianIsrael thanks, pinning jspm in package.json worked:
"jspm": "0.17.0-beta.32"

@maxali
Copy link
Author

maxali commented Feb 6, 2017

Thanks @JulianIsrael It works with jspm": "0.17.0-beta.32".

@piotrwitek its better to change jspm version to 0.17.0-beta.32 in package.json. It helps new clones i think.

@piotrwitek
Copy link
Owner

@maxali thanks for investigation and finding out the problem, I gonna do necessary version lock to do a quick fix, but we need to update imports to adhere to breaking changes introduced in SystemJS 0.20 in order to be able to update to new releases (source: http://guybedford.com/systemjs-alignment)

Follow up in: #39

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants