Coder Social home page Coder Social logo

Comments (13)

PatrickJS avatar PatrickJS commented on May 1, 2024

thanks for opening an issue. Let me look into it. It might be the version of Webpack

from mfe-starter.

gsans avatar gsans commented on May 1, 2024

Having the same issue. Updated node to v4.1.1 and npm 3.3.5.

from mfe-starter.

jimthedev avatar jimthedev commented on May 1, 2024

@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.

PatrickJS avatar PatrickJS commented on May 1, 2024

I'm unable to replicate the issue :/

from mfe-starter.

gsans avatar gsans commented on May 1, 2024

It didn't work even after upgrading node and npm. I'll try again and report back if anything changes.

from mfe-starter.

jimthedev avatar jimthedev commented on May 1, 2024

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.

PatrickJS avatar PatrickJS commented on May 1, 2024

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.

 avatar commented on May 1, 2024

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.

dotcs avatar dotcs commented on May 1, 2024

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.

SekibOmazic avatar SekibOmazic commented on May 1, 2024

Have same setup as @dotcs and for me it works fine.

from mfe-starter.

moberg avatar moberg commented on May 1, 2024

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.

iuliust avatar iuliust commented on May 1, 2024

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.

PatrickJS avatar PatrickJS commented on May 1, 2024

should be fixed via 79aef47

npm install ts-loader

from mfe-starter.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.