Please provide us with the following information:
windows 10
__ _ _ __ __ _ _ _ | | __ _ _ __ ___ | |(_)
/ _|| '_ \ / _|| | | || | / _` || '__|_____ / __|| || |
| (_| || | | || (_| || |_| || || (_| || | |_____|| (__ | || |
__,_||_| |_| __, | __,_||_| __,_||_| ___||_||_|
|___/
angular-cli: 1.0.0-beta.25.5
node: 6.9.2
os: win32 x64
@angular/common: 2.4.3
@angular/compiler: 2.4.3
@angular/core: 2.4.3
@angular/forms: 2.4.3
@angular/http: 2.4.3
@angular/platform-browser: 2.4.3
@angular/platform-browser-dynamic: 2.4.3
@angular/router: 3.4.3
@angular/compiler-cli: 2.4.3
ng serve --port 3000 --open true
Uncaught TypeError: Cannot convert undefined or null to object
at hasOwnProperty ()
at Function.__webpack_require__.o (inline.bundle.js:136)
at Object.(main.bundle.js:1827)
at __webpack_require__ (inline.bundle.js:53)
at Object.(main.bundle.js:4865)
at __webpack_require__ (inline.bundle.js:53)
at Object.(main.bundle.js:4654)
at __webpack_require__ (inline.bundle.js:53)
at Object.(main.bundle.js:14615)
at __webpack_require__ (inline.bundle.js:53)
at webpackJsonpCallback (inline.bundle.js:24)
at main.bundle.js:1
my bundle is valid
Hash: 82c35e8cba93eecbbd9b
Time: 8538ms
chunk {0} main.bundle.js, main.bundle.map (main) 721 kB {3} [initial]
chunk {1} styles.bundle.js, styles.bundle.map (styles) 10.1 kB {4} [initial] [rendered]
chunk {2} scripts.bundle.js, scripts.bundle.map (scripts) 375 kB {4} [initial]
chunk {3} vendor.bundle.js, vendor.bundle.map (vendor) 5.69 MB [initial]
chunk {4} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry]
webpack: bundle is now VALID.
issue resolved by replacing
import * as fromInternal from './internal';
fromInternal.helpReducer
with
import { helpReducer } from './internal/help-center';
any help way this was happens
Hi @alyahmedaly,
I have the same issue, but I can't figure out where it's coming from.
bootstrap 64d7cd1…:135 Uncaught TypeError: Cannot convert undefined or null to object
at hasOwnProperty (<anonymous>)
at Function.__webpack_require__.o (bootstrap 64d7cd1…:135)
at Object.385 (cell.transformer.ts:64)
at __webpack_require__ (bootstrap 64d7cd1…:52)
at Object.359 (environment.ts:16)
at __webpack_require__ (bootstrap 64d7cd1…:52)
at Object.361 (campaign.service.ts:11)
at __webpack_require__ (bootstrap 64d7cd1…:52)
at Object.581 (app.menu.ts:18)
at __webpack_require__ (bootstrap 64d7cd1…:52)
at Object.461 (src async:7)
at __webpack_require__ (bootstrap 64d7cd1…:52)
at Object.864 (main.bundle.js:3833)
at __webpack_require__ (bootstrap 64d7cd1…:52)
at webpackJsonpCallback (bootstrap 64d7cd1…:23)
How did you manage to find where was you issue? Also I don't have any import * in my code.
for you the issue seems to be related to an import in app.menu.ts try to deep import campaign.service.ts
sorry for my bad english
The root cause of this issue is a bug in webpack 2.2.0-rc3 which has now been fixed in RC4: https://github.com/webpack/webpack/issues/3895
@hansl @filipesilva I modified my local angular-cli to use webpack 2.2.0-rc4 and it cleared the run time error perfectly. Many ng2 devs on github and gitter are experiencing these issues from the same root cause after upgrading to ng cli beta 25.5. Can you guys fast track this webpack dependency upgrade in the ng CLI codebase?
@petercn added https://github.com/angular/angular-cli/pull/4008
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@petercn added https://github.com/angular/angular-cli/pull/4008