-
Notifications
You must be signed in to change notification settings - Fork 12k
angularCLI Webpack: ERROR in TypeError: Cannot read property 'request' of undefined #1922
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
Comments
I tried creating a brand new project and give it another try, but the I got:
BUT THEN SOMEONE POINTED ME TO Which basically is downgrading typescript to 2.0.0 npm uninstall typescript -g in my case, I had to run: #Tried this on the project that I'm trying to migrate from broccoli to webpack and I keep getting the nasty error messages.. . .Can someone explain a bit of how angular cli works behind the scenes (webpack), what configuration files does it refer to in order to do all of the magic... Thanks, |
Yeah, the latest angular-cli and latest Typescript (RC) are a hot mess... |
Check out dematic-rodrigo-silveira's post on #1919. I will summarize below. Huge thanks to dematic-rodrigo-silveira! For a new project, there are a few steps: Update Node to 6.5 and npm to 3.10.3
Update Typescript to 2.0+
Follow the README's instructions on installing the new cli
Modify project dependencies
Once this is complete, you should be able to serve and test without issues. I am loving the new cli. Thank you to the CLI team! |
?? |
Thank SeekingMonkey, in my case I had to change your procedure. I do not work if: to make it work I have to: I noticed that: |
npm uninstall typescript -g worked for me, |
...which gets back to my comment of the latest "release candidate" of Typescript being broken. (and why would a "release candidate" version actually show as Version 2.0.2?) |
@SeekingMonkey thanks for the tip, I was able to fix/upgrade my project, did the following
ng build...... # all good |
Updating npm, deleting the node_modules folder, and running |
I solved min by pressing Ctrl + C on the terminal to end the current npm start, This error occurred to me when I was switching branches. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Not sure if its an issues but fairly new to webpack and how angular CLI implements it and uses it.
os: win32 x64, angular-cli: 1.0.0-beta.11-webpack.8, node: 6.3.0, npm: 3.10.6
do on your code? etc.
Hi, I started an angular 2 app with angular-cli: 1.0.0-beta.9, broccoli as the builder, I've tried getting
angular-cli: 1.0.0-beta.11-webpack.8 working with my project. Followed Instructions on: Upgrading AngCLI beta 10 to AngularCLI Webpack but getting some nasty errors....
more information.
Mention any other details that might be useful.
Doing a search for "request" on the project files: I find it on
dist/index.html, - the error/log I pasted above (the one "ng build" throws at me)
dist/main.bundle.js -
window.gapi.client.request
((window.gapi||{}).client||{}).request
Does it have to do anything with: ??
https://developers.google.com/api-client-library/javascript/reference/referencedocs
gapi.client.Request
An object encapsulating an HTTP request. This object is not instantiated directly, rather it is returned by gapi.client.request. There are two ways to execute a request. We recommend that you treat the object as a promise and use the then method, but you can also use the method and pass in a callback.
Thanks,
edo@rdo
The text was updated successfully, but these errors were encountered: