Comments (13)
thanks for opening an issue. Let me look into it. It might be the version of Webpack
from mfe-starter.
Having the same issue. Updated node to v4.1.1
and npm 3.3.5
.
from mfe-starter.
@gsans Are you saying are still having the issue on node 4.1.1 and 3.3.5 or it is resolved?
from mfe-starter.
I'm unable to replicate the issue :/
from mfe-starter.
It didn't work even after upgrading node and npm. I'll try again and report back if anything changes.
from mfe-starter.
Did you blow away node_modules after updating?
On Mon, Oct 5, 2015 at 6:14 PM Gerard Sans [email protected] wrote:
It didn't work even after upgrading node and npm. I'll try again and
report back if anything changes.—
Reply to this email directly or view it on GitHub
#84 (comment)
.
from mfe-starter.
this might help
npm cache clean
- delete node_modules
- update node
npm install -g npm@latest
npm install
npm start
reinstall the repo
from mfe-starter.
I got these errors when "npm install" and it not work after npm cache clean and so on
9 errors generated.
make: *** [Release/obj.target/bufferutil/src/bufferutil.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/Users/byleaf/.nvm/versions/node/v4.1.1/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/Users/byleaf/.nvm/versions/node/v4.1.1/bin/node" "/Users/byleaf/.nvm/versions/node/v4.1.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /Users/byleaf/Documents/test/angular2-webpack-starter/node_modules/protractor/node_modules/selenium-webdriver/node_modules/ws/node_modules/bufferutil
gyp ERR! node -v v4.1.1
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN optional dep failed, continuing [email protected]
npm WARN optional dep failed, continuing [email protected]
Finally, when I run "npm start", same issue happened
ERROR in ./src/app/bootstrap.ts
...
"node":"4.1.1","npm":"2.14.4", OSX 10.11
from mfe-starter.
For me the current setup works with node 4.2.1 and npm 2.14.7 on Mac OS X 10.10. @gsans, @byleaf Can you update node and npm and give us an update if everything works fine now?
If the dependencies have been installed with node 0.x and later node 4.x is being used to update the packages, this might indeed be a problem that leads to an inconsistent state. The easiest solution here is to delete node_modules
as mentioned above and re-install dependencies using the latest npm.
from mfe-starter.
Have same setup as @dotcs and for me it works fine.
from mfe-starter.
I'm getting the same error. node 4.2.1, npm 3.3.10
chunk {2} app.js, app.js.map (app) 40 bytes {1} [rendered]
[0] multi app 40 bytes {2} [built] [1 error]
ERROR in ./src/app/bootstrap.ts
Module parse failed: /Users/peter/Development/test/ng2/angular2-webpack-starter/src/app/bootstrap.ts Line 6: Unexpected token
You may need an appropriate loader to handle this file type.
| * Providers provided by Angular
| */
| import {bootstrap, FORM_PROVIDERS, ELEMENT_PROBE_PROVIDERS} from 'angular2/angular2';
| import {ROUTER_PROVIDERS} from 'angular2/router';
| import {HTTP_PROVIDERS} from 'angular2/http';
@ multi app
from mfe-starter.
Same problem for me. Cache cleaned, fresh install, node 4.2.1, npm 3.3.10, and npm start
fails at the line 6.
chunk {2} app.js, app.js.map (app) 40 bytes {1} [rendered]
[0] multi app 40 bytes {2} [built] [1 error]
ERROR in ./src/app/bootstrap.ts
Module parse failed: /home/julien/WebstormProjects/ng2test/src/app/bootstrap.ts Line 6: Unexpected token
You may need an appropriate loader to handle this file type.
| * Providers provided by Angular
| */
| import {bootstrap, FORM_PROVIDERS, ELEMENT_PROBE_PROVIDERS} from 'angular2/angular2';
| import {ROUTER_PROVIDERS} from 'angular2/router';
| import {HTTP_PROVIDERS} from 'angular2/http';
@ multi app
UPDATE :
deleting the project and re-creating it without renaming the root folder of the project resolved the issue. I don't know if it's correlated but I had renamed the "angular2-webpack-starter/" folder to "ng2test/"...
from mfe-starter.
should be fixed via 79aef47
npm install ts-loader
from mfe-starter.
Related Issues (20)
- Cannot redeclare block-scoped variable 'console'.
- Issue - A lot of npm WARN deprecated
- Not allowing override metadata values using "webpack Environment Options" comand line arguments.
- Oops
- I did this error when I performed npm install why? Thank you
- ear
- Angular v6 install issue
- Angular 7 and ng-library support HOT 7
- angular starter not working HOT 3
- Unable to load project using npm start HOT 1
- Is this repository active? HOT 7
- A client karma-conf key duplicated
- images HOT 1
- upgrade angular 8 not working
- Angular webpack aot build taking hours to generate dist file
- How to add Web Worker to Angular 4.3 ?
- styles from src/styles.css not included by this webpack config. why?
- What's going on with this repository? HOT 3
- Welcome back to Angular Starter HOT 11
- Failed to compile HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mfe-starter.