Title: In latest angular-cli: 1.0.0-beta.22 getting exceptions.... · Issue #3384 · angular/angular-cli · GitHub
Open Graph Title: In latest angular-cli: 1.0.0-beta.22 getting exceptions.... · Issue #3384 · angular/angular-cli
X Title: In latest angular-cli: 1.0.0-beta.22 getting exceptions.... · Issue #3384 · angular/angular-cli
Description: In latest angular-cli: 1.0.0-beta.22 getting exceptions.... $ ng serve ** NG Live Development Server is running on http://localhost:4200. ** 0% compilingError encountered resolving symbol values statically. Function calls are not support...
Open Graph Description: In latest angular-cli: 1.0.0-beta.22 getting exceptions.... $ ng serve ** NG Live Development Server is running on http://localhost:4200. ** 0% compilingError encountered resolving symbol values st...
X Description: In latest angular-cli: 1.0.0-beta.22 getting exceptions.... $ ng serve ** NG Live Development Server is running on http://localhost:4200. ** 0% compilingError encountered resolving symbol values st...
Opengraph URL: https://github.com/angular/angular-cli/issues/3384
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"In latest angular-cli: 1.0.0-beta.22 getting exceptions....","articleBody":"In latest angular-cli: 1.0.0-beta.22 getting exceptions....\r\n\r\n```\r\n$ ng serve\r\n** NG Live Development Server is running on http://localhost:4200. **\r\n 0% compilingError encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 41:36 in the original .ts file), resolving symbol providing in C:/msweb/msbarcode/src/app/app.module.ts, resolving symbol AppModule in C:/msweb/msbarcode/src/app/app.module.ts, resolving symbol AppModule in C:/msweb/msbarcode/src/app/app.module.ts\r\nError: Error encountered resolving symbol values statically. Function calls are not supported. Consider replacing the function or lambda with a reference to an exported function (position 41:36 in the original .ts file), resolving symbol providing in C:/msweb/msbarcode/src/app/app.module.ts, resolving symbol AppModule in C:/msweb/msbarcode/src/app/app.module.ts, resolving symbol AppModule in C:/msweb/msbarcode/src/app/app.module.ts\r\n at positionalError (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler-cli\\src\\static_reflector.js:595:18)\r\n at simplifyInContext (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler-cli\\src\\static_reflector.js:473:27)\r\n at StaticReflector.simplify (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler-cli\\src\\static_reflector.js:478:22)\r\n at StaticReflector.annotations (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler-cli\\src\\static_reflector.js:60:36)\r\n at NgModuleResolver.resolve (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:14261:46)\r\n at CompileMetadataResolver._loadNgModuleMetadata (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:14646:45)\r\n at CompileMetadataResolver.getUnloadedNgModuleMetadata (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:14636:23)\r\n at addNgModule (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:12944:43)\r\n at C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:12957:16\r\n at Array.forEach (native)\r\n at _createNgModules (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:12956:28)\r\n at analyzeNgModules (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:12700:16)\r\n at analyzeAndValidateNgModules (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:12704:20)\r\n at OfflineCompiler.compileModules (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler\\bundles\\compiler.umd.js:12775:20)\r\n at CodeGenerator.codegen (C:\\msweb\\msbarcode\\node_modules\\@angular\\compiler-cli\\src\\codegen.js:58:30)\r\n at AotPlugin._make (C:\\msweb\\msbarcode\\node_modules\\@ngtools\\webpack\\src\\plugin.js:193:43)\r\n at Compiler.\u003canonymous> (C:\\msweb\\msbarcode\\node_modules\\@ngtools\\webpack\\src\\plugin.js:157:75)\r\n at Compiler.applyPluginsParallel (C:\\msweb\\msbarcode\\node_modules\\tapable\\lib\\Tapable.js:156:14)\r\n at Compiler.\u003canonymous> (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:463:8)\r\n at Compiler.applyPluginsAsync (C:\\msweb\\msbarcode\\node_modules\\tapable\\lib\\Tapable.js:73:70)\r\n at Compiler.compile (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:456:7)\r\n at Watching.\u003canonymous> (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:46:17)\r\n at next (C:\\msweb\\msbarcode\\node_modules\\tapable\\lib\\Tapable.js:81:11)\r\n at Compiler.invalidAsyncPlugin (C:\\msweb\\msbarcode\\node_modules\\webpack-dev-middleware\\middleware.js:119:3)\r\n at next (C:\\msweb\\msbarcode\\node_modules\\tapable\\lib\\Tapable.js:83:14)\r\n at Compiler.\u003canonymous> (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\CachePlugin.js:31:4)\r\n at Compiler.applyPluginsAsync (C:\\msweb\\msbarcode\\node_modules\\tapable\\lib\\Tapable.js:85:13)\r\n at Watching._go (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:44:16)\r\n at Watching.\u003canonymous> (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:36:8)\r\n at Compiler.readRecords (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:367:10)\r\n at new Watching (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:33:16)\r\n at Compiler.watch (C:\\msweb\\msbarcode\\node_modules\\webpack\\lib\\Compiler.js:204:17)\r\n at module.exports (C:\\msweb\\msbarcode\\node_modules\\webpack-dev-middleware\\middleware.js:146:27)\r\n at new Server (C:\\msweb\\msbarcode\\node_modules\\webpack-dev-server\\lib\\Server.js:43:20)\r\n at Class.run (C:\\msweb\\msbarcode\\node_modules\\angular-cli\\tasks\\serve-webpack.js:85:22)\r\n at C:\\msweb\\msbarcode\\node_modules\\angular-cli\\commands\\serve.js:102:26\r\n at process._tickCallback (internal/process/next_tick.js:103:7)\r\n```\r\n\r\nAs you can see I have a simple providing array which causes the problem (works fine in ng cli beta .21)\r\n\r\n```\r\nexport var providing = [{\r\n provide: AppStore, useFactory: (ngRedux: NgRedux\u003cany>, devTools: DevToolsExtension) => {\r\n const reducers = combineReducers({notify, sample_reducer});\r\n const middlewareEnhancer = applyMiddleware(\u003cany>thunkMiddleware);\r\n const applyDevTools = () => devTools.isEnabled() ? devTools.enhancer : f => f;\r\n const enhancers: any = compose(middlewareEnhancer, applyDevTools);\r\n const store = createStore(reducers, enhancers);\r\n ngRedux.provideStore(store);\r\n return new AppStore(store);\r\n }, deps: [NgRedux, DevToolsExtension]\r\n}, {\r\n provide: \"OFFLINE_ENV\",\r\n useValue: false\r\n}, {\r\n provide: SampleActions,\r\n useClass: SampleActions\r\n}];\r\n\r\n@NgModule({\r\n declarations: [\r\n AppComponent,\r\n // MyComp\r\n ],\r\n imports: [\r\n BrowserModule,\r\n FormsModule,\r\n HttpModule,\r\n // MsLibModule.forRoot(),\r\n // NgReduxModule.forRoot(), //toggle\r\n MaterialModule.forRoot()\r\n ],\r\n providers: [providing],\r\n bootstrap: [AppComponent]\r\n})\r\n```\r\n\r\nso ng cli is not happy about the fact I am running a factory with functions (which is the proper way of setting up Redux). If I remove the entire providing function, .22 passes the ng serve, but again, have to do it in order to bootstrap Redux.\r\n\r\nYou can take a look at the very small project at:\r\nhttps://github.com/born2net/msbarcode/tree/hmr\r\n\r\nwill be happy to help test as I'd like to get hmr running which requires .22.\r\n\r\nregards,\r\n\r\nSean","author":{"url":"https://github.com/born2net","@type":"Person","name":"born2net"},"datePublished":"2016-12-04T06:17:32Z","url":"https://github.com/angular/angular-cli/issues/3384"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:0a256e87-090f-8591-c688-e9355860f30b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D604:1A6A4C:197C9F:235AD7:6B0571D5 |
| html-safe-nonce | f3c920a2f65f9eaf5039fafdbf72c793aa11212a5d04a3d99849dc412bfbf422 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjA0OjFBNkE0QzoxOTdDOUY6MjM1QUQ3OjZCMDU3MUQ1IiwidmlzaXRvcl9pZCI6IjY5OTE1MTE0OTQ2NzI2MDk3NDkiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 63bdae3706f87758180e07aaf4ee65d2a85a68e44ad47d239afc4d8012a90d42 |
| hovercard-subject-tag | issue:193334627 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular-cli/3384/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5a949d2cbc76a50239f6fcba62e31325a13d75d9c95b10ae10879559891d366/angular/angular-cli/issues/3384 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5a949d2cbc76a50239f6fcba62e31325a13d75d9c95b10ae10879559891d366/angular/angular-cli/issues/3384 |
| og:image:alt | In latest angular-cli: 1.0.0-beta.22 getting exceptions.... $ ng serve ** NG Live Development Server is running on http://localhost:4200. ** 0% compilingError encountered resolving symbol values st... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | born2net |
| hostname | github.com |
| expected-hostname | github.com |
| None | 507b2d62524c0f595c35a2a2ee8a6ec54b119f245b3c59eaa070013b70ed1ada |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular-cli git https://github.com/angular/angular-cli.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 36891867 |
| octolytics-dimension-repository_nwo | angular/angular-cli |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 36891867 |
| octolytics-dimension-repository_network_root_nwo | angular/angular-cli |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e7a883ae3b439b8952652eaa7803e2587f30e339 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width