question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

es6 and lite-server errors

See original GitHub issue

[1] Did not detect a bs-config.json or bs-config.js override file. Using lite-server defaults… [1] * browser-sync options ** [1] { injectChanges: false, [1] files: [ './/.{html,htm,css,js}’ ], [1] server: { baseDir: ‘./’, middleware: [ [Function], [Function] ] } } [1] [BS] Access URLs: [1] ------------------------------------ [1] Local: http://localhost:3000 [1] External: http://192.168.1.3:3000 [1] ------------------------------------ [1] UI: http://localhost:3001 [1] UI External: http://192.168.1.3:3001 [1] ------------------------------------ [1] [BS] Serving files from: ./ [1] [BS] Watching files… [1] 16.03.19 17:59:33 200 GET /index.html [1] 16.03.19 17:59:33 404 GET /styles.css [1] 16.03.19 17:59:33 304 GET /node_modules/es6-shim/es6-shim.min.js [1] 16.03.19 17:59:33 304 GET /node_modules/systemjs/dist/system-polyfills.js [1] 16.03.19 17:59:33 304 GET /node_modules/angular2/bundles/angular2-polyfills.js [1] 16.03.19 17:59:33 304 GET /node_modules/systemjs/dist/system.src.js [1] 16.03.19 17:59:33 304 GET /node_modules/angular2/es6/dev/src/testing/shims_for_IE.js [1] 16.03.19 17:59:33 304 GET /node_modules/rxjs/bundles/Rx.js [1] 16.03.19 17:59:33 304 GET /node_modules/angular2/bundles/angular2.dev.js [0] node_modules/angular2/typings/browser.d.ts(6,14): error TS2300: Duplicate identifier ‘PromiseConstructor’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(22,5): error TS2300: Duplicate identifier ‘done’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(23,5): error TS2300: Duplicate identifier ‘value’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(46,5): error TS2300: Duplicate identifier ‘size’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(52,5): error TS2300: Duplicate identifier ‘prototype’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(66,5): error TS2300: Duplicate identifier ‘size’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(72,5): error TS2300: Duplicate identifier ‘prototype’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(88,5): error TS2300: Duplicate identifier ‘prototype’. [0] node_modules/angular2/typings/es6-collections/es6-collections.d.ts(103,5): error TS2300: Duplicate identifier ‘prototype’. [0] node_modules/angular2/typings/es6-promise/es6-promise.d.ts(11,15): error TS2300: Duplicate identifier ‘Promise’. [0] node_modules/angular2/typings/es6-promise/es6-promise.d.ts(42,16): error TS2300: Duplicate identifier ‘Promise’. [0] typings/browser/ambient/es6-shim/index.d.ts(11,5): error TS2300: Duplicate identifier ‘done’. [0] typings/browser/ambient/es6-shim/index.d.ts(12,5): error TS2300: Duplicate identifier ‘value’. [0] typings/browser/ambient/es6-shim/index.d.ts(477,11): error TS2300: Duplicate identifier ‘Promise’. [0] typings/browser/ambient/es6-shim/index.d.ts(496,11): error TS2300: Duplicate identifier ‘PromiseConstructor’. [0] typings/browser/ambient/es6-shim/index.d.ts(554,13): error TS2300: Duplicate identifier ‘Promise’. [0] typings/browser/ambient/es6-shim/index.d.ts(563,5): error TS2300: Duplicate identifier ‘size’. [0] typings/browser/ambient/es6-shim/index.d.ts(572,5): error TS2300: Duplicate identifier ‘prototype’. [0] typings/browser/ambient/es6-shim/index.d.ts(583,5): error TS2300: Duplicate identifier ‘size’. [0] typings/browser/ambient/es6-shim/index.d.ts(592,5): error TS2300: Duplicate identifier ‘prototype’. [0] typings/browser/ambient/es6-shim/index.d.ts(607,5): error TS2300: Duplicate identifier ‘prototype’. [0] typings/browser/ambient/es6-shim/index.d.ts(621,5): error TS2300: Duplicate identifier ‘prototype’. [0] 5:59:33 PM - Compilation complete. Watching for file changes. [1] [BS] File changed: app/app.component.js [1] [BS] File changed: app/main.js [1] [BS] File changed: app/sayHello.js [1] 16.03.19 17:59:33 200 GET /app/main.js [1] 16.03.19 17:59:33 200 GET /app/app.component.js [1] events.js:154 [1] throw er; // Unhandled ‘error’ event [1] ^ [1] [1] Error: watch node_modules/browser-sync/node_modules/lodash/lang/isNumber.js ENOSPC [1] at exports._errnoException (util.js:890:11) [1] at FSWatcher.start (fs.js:1313:19) [1] at Object.fs.watch (fs.js:1341:11) [1] at createFsWatchInstance (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:37:15) [1] at setFsWatchListener (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:80:15) [1] at FSWatcher.NodeFsHandler._watchWithNodeFs (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:228:14) [1] at FSWatcher.NodeFsHandler._handleFile (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:255:21) [1] at FSWatcher.<anonymous> (/run/media/habib/New Volume/projects/angular2/learn-from-doc/node_modules/chokidar/lib/nodefs-handler.js:473:21) [1] at FSReqWrap.oncomplete (fs.js:82:15) [1] [1] npm [1]
[1] ERR! Linux 4.4.5-1-MANJARO [1] npm ERR! [1] argv “/usr/bin/node” “/usr/bin/npm” “run” “lite” [1] npm ERR! node v5.8.0 [1] npm [1] ERR! npm v3.8.2 [1] npm ERR! code ELIFECYCLE [1] npm ERR! angular2-quickstart@1.0.0 lite: lite-server [1] npm ERR! Exit status 1 [1] npm ERR! [1] npm ERR! Failed at the angular2-quickstart@1.0.0 lite script ‘lite-server’. [1] npm ERR! Make sure you have the latest version of node.js and npm installed. [1] npm [1] ERR! If you do, this is most likely a problem with the angular2-quickstart package, [1] npm ERR! not with npm itself. [1] npm ERR! Tell the author that this fails on your system: [1] npm ERR! lite-server [1] npm ERR! You can get information on how to open an issue for this project with: [1] npm ERR! npm bugs angular2-quickstart [1] npm ERR! Or if that isn’t available, you can get their info via: [1] npm ERR! npm owner ls angular2-quickstart [1] npm ERR! There is likely additional logging output above. [1] [1] npm [1] ERR! Please include the following file with any support request: [1] npm ERR! /run/media/habib/New Volume/projects/angular2/learn-from-doc/npm-debug.log [1] npm run lite exited with code 1

npm-debug.log.tar.gz

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
ghostcommented, Mar 24, 2016

Had the same problem on Fedora 23, using various node and npm versions. I found this solution that worked for me: Related: angular/angular#6097 Another reference that contains some interesting links in the comments: http://stackoverflow.com/questions/34399445/angular-2-quickstart-live-server-error

0reactions
wardbellcommented, Mar 25, 2016

Closing as this is not a QS issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular 6 - Running dist folder with lite-server on IE11 doesn't ...
Angular 6 - Running dist folder with lite-server on IE11 doesn't work · 1. If you open the browsers developer tools, what error...
Read more >
Handling Errors with ES6 - Runnablog - Runnable
Instead, we're handling our errors with ES6 features (mainly promises and classes). In this post, I'll talk about why we've made this transition....
Read more >
[Solved]-babelJs Angular & lite-server, how compile ES6
How do I setup Babel 6 with Node JS to use ES6 in my Server Side code? ... How to compile ES6+ code...
Read more >
lite-server - npm
Start using lite-server in your project by running `npm i lite-server`. ... Error: Cannot find module 'connect-history-api-fallback'.
Read more >
Getting started with ES6 using VS Code and Lite Server
plnkr-security-error. I recommend using Visual Studio Code with Lite Server from John Papa. First you need to install Node.js – see my post ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found