jQWidgets Forums
jQuery UI Widgets › Forums › Angular › Angular-CLI NG SERVER
This topic contains 1 reply, has 2 voices, and was last updated by Ivo Zhulev 8 years, 6 months ago.
-
AuthorAngular-CLI NG SERVER Posts
-
I have taken Angular-cli approach with WEBPACK and have received the following error after running “ng server”.
What I would like help with is why I’m getting the error:
ERROR in ./src/app/app.component.ts
Module build failed: TypeError: Cannot read property ‘replace’ of undefinedand
ERROR in ./jqwidgets-ts/angular_jqxbuttons.ts
Module build failed: TypeError: Cannot read property ‘replace’ of undefinedI’m using JQWIDGETS 4.4.0.
Any help would be appreciated.
Thanks,
GaryC:\Users\Gary\WebstormProjects\Angular 221>ng server
** NG Live Development Server is running on http://localhost:4200. **
Hash: db924b6fab00e04cfcd7
Time: 10089ms
chunk {0} styles.bundle.js, styles.bundle.map (styles) 447 kB {4} [initial] [rendered]
chunk {1} scripts.bundle.js, scripts.bundle.map (scripts) 892 kB {4} [initial] [rendered]
chunk {2} main.bundle.js, main.bundle.map (main) 8.99 kB {3} [initial] [rendered]
chunk {3} vendor.bundle.js, vendor.bundle.map (vendor) 2.22 MB [initial] [rendered]
chunk {4} inline.bundle.js, inline.bundle.map (inline) 0 bytes [entry] [rendered]ERROR in ./src/app/app.component.ts
Module build failed: TypeError: Cannot read property ‘replace’ of undefined
at Object.normalizeSlashes (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:1771:20)
at writeReferencePath (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:37236:90)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35750:29
at Object.forEach (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:1115:30)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35742:20
at Object.forEach (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:1115:30)
at emitDeclarations (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35735:12)
at getDeclarationDiagnosticsFromFile (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35699:13)
at onSingleFileEmit (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:7569:13)
at Object.forEachExpectedEmitFile (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:7542:21)
at Object.getDeclarationDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35695:12)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45673:27
at runWithCancellationToken (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45468:24)
at getDeclarationDiagnosticsWorker (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45669:20)
at getDeclarationDiagnosticsForFile (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45677:60)
at getDiagnosticsHelper (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45436:24)
at Object.getDeclarationDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45460:24)
at TypeScriptFileRefactor.getDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\@ngtools\webpack\src\refactor.js:51:35)
at _checkDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\@ngtools\webpack\src\loader.js:106:32)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\@ngtools\webpack\src\loader.js:140:17
@ ./src/app/index.ts 1:0-32
@ ./src/main.ts
@ multi mainERROR in ./jqwidgets-ts/angular_jqxbuttons.ts
Module build failed: TypeError: Cannot read property ‘replace’ of undefined
at Object.normalizeSlashes (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:1771:20)
at writeReferencePath (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:37236:90)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35750:29
at Object.forEach (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:1115:30)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35742:20
at Object.forEach (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:1115:30)
at emitDeclarations (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35735:12)
at getDeclarationDiagnosticsFromFile (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35699:13)
at onSingleFileEmit (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:7569:13)
at Object.forEachExpectedEmitFile (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:7542:21)
at Object.getDeclarationDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:35695:12)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45673:27
at runWithCancellationToken (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45468:24)
at getDeclarationDiagnosticsWorker (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45669:20)
at getDeclarationDiagnosticsForFile (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45677:60)
at getDiagnosticsHelper (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45436:24)
at Object.getDeclarationDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\typescript\lib\typescript.js:45460:24)
at TypeScriptFileRefactor.getDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\@ngtools\webpack\src\refactor.js:51:35)
at _checkDiagnostics (C:\Users\Gary\WebstormProjects\Angular 221\node_modules\@ngtools\webpack\src\loader.js:106:32)
at C:\Users\Gary\WebstormProjects\Angular 221\node_modules\@ngtools\webpack\src\loader.js:140:17
@ ./src/app/app.module.ts 15:0-75
@ ./src/app/index.ts
@ ./src/main.ts
@ multi main
webpack: bundle is now VALID.Hi Gary,
I cant reproduce that error. Perhaps look at your code inside
app.component
and see of what you are calling that propertyreplace
.Best Regards,
IvojQWidgets Team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.