-
Notifications
You must be signed in to change notification settings - Fork 12k
[RC6 Update w/ webpack 2.1.0-beta.21 incompat] Uncaught TypeError: Cannot read property 'Emulated' of undefined #1948
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
package.json dependencies: {
"@angular/common": "2.0.0-rc.6",
"@angular/compiler": "2.0.0-rc.6",
"@angular/compiler-cli": "0.6.0",
"@angular/core": "2.0.0-rc.6",
"@angular/forms": "2.0.0-rc.6",
"@angular/http": "2.0.0-rc.6",
"@angular/platform-browser": "2.0.0-rc.6",
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
"@angular/router": "3.0.0-rc.2",
"core-js": "^2.4.1",
"reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.11",
"ts-helpers": "^1.1.1",
"zone.js": "^0.6.17"
} |
Please try updating to Node 6.5.0 - that seemed to fix issues for lots of people. Not sure about Windows machine though. |
Hi @hassanasad , updating NodeJS had no effect on my machine. |
In #11359 I suggest a specific line causing the problem. |
reverted to es5, no issues. in es6, didn't seem to see the import for ViewEncapsulation correctly, closure had WEBPACK_IMPORTED_MODULE_0__angular_core instead of ViewEncapsulation, don't know enough enough about import to know if this is normal |
I'm not using angular-cli (using webpack directly) and I've encountered the same issue. Verifying that I have the right versions of node/npm/typescript didn't help, the only thing that solved it is changing the tsconfig |
This definitely helps. |
Good god.. I can't wait until all of the various moving pieces for Angular 2 get locked down - between fighting with AngularCLI versions, Typescript versions (can't use 2.0.2, that breaks, gotta lock it to 2.0.0), and Angular itself (RC6), trying to get a dev environment set up is an exercise in futility! (my company is looking into Angular 2 for it's next dev platform, and having to say well there are all these issues just to get started, makes one want to look at other, more stable, platforms!) |
Listen up😄 This issue was caused by webpack not being able to handle deep namespaced reexports appropriately (packages got rearranged for RC6) while trying to treeshake: see #2953 Updating to [email protected] will solve this issue. This issue is also fixed on master for the CLI as of yesterday #2011. |
Fixed with #2011 |
Yup. Shame trying to install master, using the directions
and yes I have typescript 2.0.2 installed: Sigh. Now I have to clean up back to working state... |
@TheLarkInn I am using the current master branch, generate a brand new "angular2" project, run I checked my
Should you cut a new release like |
Hi @TheLarkInn, |
I was having the same issue and I uninstalled angular-cli globally and locally. Re-installed it globally then updated the package JSON and started a new project. I then updated the local JSON and uninstalled Webpack and reinstalled beta 22. Although I think updating the JSON and uninstalling Webpack and installing beta 22. You might have to update the Node Modules as whole though. |
I tried the solution that you suggested @Pekes317, local JSON and uninstalled Webpack and reinstalled beta 22 and updated complete Node Modules too but when I run ng serve, it eventually shows Webpack version as |
@richavyas go to node_modules/angular-cli |
Thanks @kover, it worked!!!!!! |
Holy heck this is a mess. |
I updated NodeJS to version 6.6.0 and it solved the problem. Thanks @hassanasad for your suggestion 😀 👍 |
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. |
Windows 10 Pro x64
Build 14393.rs1_release_inmarket.160819-1924
ng --version
. If there's nothing outputted, please runin a Terminal:
node --version
and paste the result here:angular-cli: local (v1.0.0-beta.11-webpack.8, branch: master)
node: 6.3.1
os: win32 x64
do on your code? etc.
$ ng new
Upgrade to rc.6
$ ng serve
Error appears when opening in browser
more information.
config.js:15Uncaught TypeError: Cannot read property 'Emulated' of undefinedCompilerConfig @ config.js:15(anonymous function) @ compiler.js:75__webpack_require__ @ bootstrap 76af11c…:52(anonymous function) @ main.bundle.js:50229__webpack_require__ @ bootstrap 76af11c…:52(anonymous function) @ main.bundle.js:13600__webpack_require__ @ bootstrap 76af11c…:52(anonymous function) @ main.bundle.js:56646__webpack_require__ @ bootstrap 76af11c…:52(anonymous function) @ main.bundle.js:56624__webpack_require__ @ bootstrap 76af11c…:52(anonymous function) @ version.js:1__webpack_require__ @ bootstrap 76af11c…:52(anonymous function) @ main.bundle.js:67347__webpack_require__ @ bootstrap 76af11c…:52webpackJsonpCallback @ bootstrap 76af11c…:23(anonymous function) @ main.bundle.js:1
The text was updated successfully, but these errors were encountered: