angular / material-start

Starter Repository for AngularJS Material
https://angularjs-material-start.web.app
MIT License
2.21k stars 1.21k forks source link

Error: (SystemJS) [BABEL] unknown: Unknown option: direct.0 ReferenceError: [BABEL] unknown: Unknown option: direct.0 #170

Closed Mohankumarj closed 5 years ago

Mohankumarj commented 7 years ago

Always shows empty screen with this error on the browser

Mohankumarj commented 7 years ago

Hi, help me to work, i Clone the latest version of Master and install npm, jspm, and run the live-server, lite-server,ng serve everything shows me the same error in the brower.

i cloned this link too https://github.com/angular/material-start/tree/es6-tutorial

same error.

AndrewBarfield commented 7 years ago

I'm getting the same on Ubuntu 16.10 / Chrome 57:

Live reload enabled. Error: (SystemJS) [BABEL] unknown: Unknown option: direct.0 ReferenceError: [BABEL] unknown: Unknown option: direct.0 at Logger.error (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:8955:11) at OptionManager.mergeOptions (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:9463:29) at OptionManager.init (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:9553:10) at File.initOptions (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:8193:75) at new File (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:8183:22) at Pipeline.transform (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:13515:16) Error loading http://localhost:8080/src/boot/boot.js at Logger.error (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:8955:11) at OptionManager.mergeOptions (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:9463:29) at OptionManager.init (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:9553:10) at File.initOptions (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:8193:75) at new File (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:8183:22) at Pipeline.transform (http://localhost:8080/jspm_packages/npm/babel-core@5.8.38/browser.js:13515:16) Error loading http://localhost:8080/src/boot/boot.js

HabibeC commented 7 years ago

+1

gregor-srdic commented 7 years ago

+1

MahmoudHboubati commented 7 years ago

+1

EladBezalel commented 7 years ago

Hey, I've tried to reproduce this issue, i re-cloned the repo, freshly installed jspm and everything seems to work.

Can any of you please note the steps that lead you to this issue?

congkhuong commented 7 years ago

+1

umbria commented 7 years ago

+1

EladBezalel commented 7 years ago

What version of node are you using? of jspm? i couldn't reproduce..

umbria commented 7 years ago

I'm using v6.10.2

EliKrumholz commented 7 years ago

I get this error when checking out the step-# commits, and it seems to be fixed if I checkout the app/config.js from master, this worked for me:

git checkout step-3
git checkout master app/config.js
npm install
live-server --open=app
pbov commented 7 years ago

@EliKrumholz works, thank you!

Maybe this should be fixed, not working examples are not fun

Gennady77 commented 7 years ago

Example doesn't work! Unfortunately nobody's going to fix it

denisacostaq commented 6 years ago

Fixed by @angelomichel on #165 👍, the PR still unmerged.

Splaktar commented 5 years ago

This was fixed by the move from Babel to traceur. It should work on the following branches: master, es6-tutorial (which aligns with step-1), and es6 (which aligns with step-10).

The individual steps from 2-9 may not have this fix.